"use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}angular.module("daily.deal.chain",["locale","product.payment.details","product.thumbnail","templates"]).component("habboDailyDealChain",{bindings:{items:"<",selectedCategory:"@",showOffers:"<"},controllerAs:"DailyDealChainController",templateUrl:"shop/store/inventory/daily-deal/daily-deal-chain/daily-deal-chain.html"}),angular.module("countdown.timer",[]).directive("habboCountdownTimer",["$interval",function(e){return{restrict:"E",scope:{endDate:"@",highlight:"@"},template:'
{{:: highlight}} | {{ days }}d {{ hours }}h
',link:function(t){function r(){var e=new Date(t.endDate).getTime(),r=(new Date).getTime(),n=e-r;n<=0?(t.days=0,t.hours=0):(t.days=Math.floor(n/864e5),t.hours=Math.floor(n%864e5/36e5))}var n=e(r,36e5);r(),t.$on("$destroy",function(){e.cancel(n)})}}}]),angular.module("payment.popup",["config","google.analytics","notifier","popup","purse.service","shop.service","system.data"]).factory("paymentPopup",["$q","$translate","$window","CONFIG","Shop","SystemData","googleAnalytics","notifier","popup","purse",function(e,t,r,n,o,a,i,s,l,c){function u(e){return"/proceed/"+[e.requestPath,e.purchaseParams.countryId,e.purchaseParams.pricePointId,e.purchaseParams.paymentMethodId].join("/")}function f(e){var t=a.getShopCountry();t!==e&&i.trackEvent("Payment","Country changed","Used: "+e+", Default: "+t)}var d={};return d.getItemName=function(r){var n=["CREDITS_AMOUNT"];return r.creditAmount?(r.doubleCredits&&n.push("DOUBLE_CREDITS_PREFIX"),t(n,{value:r.creditAmount}).then(function(e){return _([e.DOUBLE_CREDITS_PREFIX,e.CREDITS_AMOUNT]).compact().join(" ")})):e.when(r.name)},d.sendShopTrackingEvents=function(e,t,r){var n="Item: "+t+", Method: "+r;switch(e){case"SUCCESS":i.trackEvent("Payment","Succeeded",n);break;case"PENDING":i.trackEvent("Payment","Pending",n);break;case"ERROR":i.trackEvent("Payment","Failed",n);break;default:i.trackEvent("Payment","Aborted",n)}},d.open=function(e,t){function a(r){r.originalEvent.data&&r.originalEvent.data.status&&(p=r.originalEvent.data.status,"SUCCESS"!==p&&"PENDING"!==p||(c.update(),o.updateInventory(t.countryCode),f(t.countryCode),d.getItemName(t).then(function(e){var n=r.originalEvent.data.txId,o=r.originalEvent.data.currency,a=r.originalEvent.data.priceInCents,s=_(t.categories).sort().join(", "),l=Number(a/100).toFixed(2);i.trackTransaction(n,e,t.id,s,l,o)})),d.sendShopTrackingEvents(p,t.id,e.id))}function h(){"SUCCESS"===p&&d.getItemName(t).then(function(e){s.success("SHOP_PAYMENT_SUCCESS",{name:e})})}var p,m=u(e);return angular.element(r).on("message",a),l.open(n.shopUrl+m).then(function(){h(),angular.element(r).off("message",a)})},d}]),angular.module("weekly.deal",["accordion","locale","product.payment.details","product.thumbnail","templates"]).component("habboWeeklyDeal",{bindings:{items:"<",selectedCategory:"@"},controller:["MEMBERSHIPTYPES","creditFilter",function(e,t){var r=this;r.isCredit=t(r.items,e.CURRENCIES).length>0}],controllerAs:"WeeklyDealController",templateUrl:"shop/store/inventory/weekly-deal/weekly-deal.html"}),angular.module("memberships",["accordion","locale","product.payment.details","product.thumbnail","shop.filters","shop.sections","templates"]).component("habboMemberships",{bindings:{items:"<",selectedCategory:"@"},controller:["MEMBERSHIPTYPES","membershipFilter",function(e,t){var r=this;r.buildersClub=t(r.items,e.BUILDERSCLUB),r.habboClub=t(r.items,e.HABBOCLUB),r.combo=t(r.items,e.COMBO)}],controllerAs:"MembershipsController",templateUrl:"shop/store/inventory/memberships/memberships.html"}),angular.module("daily.deal",["accordion","chain.offer.sort","daily.deal.chain","events","locale","product.payment.details","product.thumbnail","shop.service","templates"]).component("habboDailyDeal",{bindings:{items:"<",selectedCategory:"@",updateDailySection:"&"},controller:["$rootScope","$scope","EVENTS","MEMBERSHIPTYPES","Shop","chainOfferSort","dealOfDayFilter","dealOfDayCreditFilter","dealOfDayNotInChainFilter","dealOfDayChainFilter",function(e,t,r,n,o,a,i,s,l,c){function u(e){f.allOffers=!1;var t=l(e),r=c(e);if(r.length>0){var n=a.sort(r);f.chainOffers=n.filter(function(e){return!e.isPurchased});var o=f.chainOffers[0];f.dealOfDay=o?t.concat([o]):t,f.offerLeftToBuy=f.chainOffers.slice(1,f.chainOffers.length),f.totalOffers=n.length,f.countPurchasedOffers=f.totalOffers-f.chainOffers.length,f.allOffers=f.offerLeftToBuy.length<=2,f.buttonText="DAILY_OFFER_CHAIN_SHOW_MORE"}else f.dealOfDay=t;0===f.dealOfDay.length&&f.updateDailySection()}var f=this;u(f.items),f.isCredit=function(e){return s([e],n.CURRENCIES).length>0},f.toggleAllOffers=function(){f.allOffers=!f.allOffers,f.buttonText=f.allOffers?"DAILY_OFFER_CHAIN_HIDE":"DAILY_OFFER_CHAIN_SHOW_MORE",e.$broadcast(r.accordionResize)},t.$watch(o.inventoryGet,function(e){if(e.pricePoints){f.dealOfDay=[];var t=i(e.pricePoints);u(t)}})}],controllerAs:"DailyDealController",templateUrl:"shop/store/inventory/daily-deal/daily-deal.html"}),angular.module("chain.offer.sort",[]).factory("chainOfferSort",function(){var e={};return e.sort=function(e){function t(t){var r=null;return e.forEach(function(e){e.linkedPricePointId===t&&(r=e)}),r}var r=null;if(e.forEach(function(e){e.hasOwnProperty("linkedPricePointId")||(r=e)}),!r)return[];for(var n=[r],o=r,a=!0;a;){var i=t(o.id);if(!i)break;n.push(i),o=i}return n},e}),angular.module("bundles",["accordion","locale","product.payment.details","product.thumbnail","templates"]).component("habboBundles",{bindings:{items:"<",selectedCategory:"@"},controllerAs:"BundlesController",templateUrl:"shop/store/inventory/bundles/bundles.html"}),angular.module("sub.product.icons",["locale","templates"]).component("habboSubProductIcons",{bindings:{subProducts:"<"},controllerAs:"SubProductIconsController",templateUrl:"shop/payment-details/product-payment-details/sub-product-icons/sub-product-icons.html"}),angular.module("payment.premium.sms",["config","locale","templates","voucher.redeem"]).component("habboPremiumSms",{bindings:{method:"<"},controller:["CONFIG",function(e){var t=this,r=[e.localizationSite,t.method.localizationKey].join("_");t.methodSmallPrintKey=["SHOP_PAYMENTMETHOD_SMALLPRINT",r].join("_").toUpperCase(),t.methodInstructionKey=["SHOP_PAYMENTMETHOD_INSTRUCTION",r].join("_").toUpperCase()}],controllerAs:"PremiumSmsController",templateUrl:"shop/payment-details/payment-steps/premium-sms/premium-sms.html",transclude:!0}),angular.module("payment.methods",["locale","payment.button","security","shop.filters","templates"]).component("habboPaymentMethods",{require:{PaymentStepsController:"^habboPaymentSteps"},bindings:{item:"<",selectedCategory:"@"},controllerAs:"PaymentMethodsController",templateUrl:"shop/payment-details/payment-steps/payment-methods/payment-methods.html"}),angular.module("payment.disclaimer",["ngSanitize","config","locale","payment.button","templates"]).component("habboPaymentDisclaimer",{bindings:{item:"<",method:"<"},controller:["CONFIG",function(e){var t=this,r=[e.localizationSite,t.method.localizationKey].join("_");t.methodSmallPrintKey=["SHOP_PAYMENTMETHOD_SMALLPRINT",r].join("_").toUpperCase(),t.methodInstructionKey=["SHOP_PAYMENTMETHOD_INSTRUCTION",r].join("_").toUpperCase()}],controllerAs:"PaymentDisclaimerController",templateUrl:"shop/payment-details/payment-steps/payment-disclaimer/payment-disclaimer.html"}),angular.module("payment.button",["events","locale","payment.popup","security","templates"]).component("habboPaymentButton",{bindings:{item:"<",method:"<"},controller:["$scope","EVENTS","Session","loginModal","paymentPopup",function(e,t,r,n,o){function a(){return _.includes(i,s.method.category)}var i=["builders","subscription"],s=this;s.translationKey=a()?"SHOP_SUBSCRIPTION_SUBSCRIBE_BUTTON":"SHOP_PAYMENT_BUTTON",s.paymentInProgress=!1,r.hasSession()?s.purchase=function(){s.paymentInProgress=!0,o.open(s.method,s.item).then(function(){e.$emit(t.shopPaymentClose)})["finally"](function(){s.paymentInProgress=!1})}:s.purchase=n.open}],controllerAs:"PaymentButtonController",templateUrl:"shop/payment-details/payment-steps/payment-button/payment-button.html"}),angular.module("adyen.service",["adyen-cse-js","config"]).factory("adyen",["$http","CONFIG","adyenCse",function(e,t,r){return{encryptAndSend:function(n,o,a){var i={number:n.number,cvc:n.cvc,holderName:n.name,expiryMonth:n.expMonth.toString(),expiryYear:n.expYear.toString(),generationtime:o},s={countryId:a.purchaseParams.countryId,pricePointId:a.purchaseParams.pricePointId,paymentMethodId:a.id,creditCardNonce:r.encrypt(i)};return e.post(t.shopUrl+"/payment/adyen/",s)}}}]),angular.module("adyen-cse-js",["config"]).factory("adyenCse",["$window","CONFIG",function(e,t){var r=t.adyenPublicKey,n={},o=e.adyen.encrypt.createEncryption(r,n);return o}]),angular.module("payment.adyen",["adyen.service","config","credit.card","events","locale","notifier","purse.service","templates"]).component("habboAdyen",{bindings:{method:"<",item:"<"},controller:["$window","$http","$scope","$rootScope","$translate","CONFIG","EVENTS","adyen","notifier","paymentPopup","purse",function(e,t,r,n,o,a,i,s,l,c,u){var f=this;f.state="AWAITING_INPUT",f.transactionId="",f.close=function(){n.$broadcast(i.accordionClose),n.$broadcast(i.accordionUpdate)},f.showInputForm=function(){f.transactionId="",f.state="AWAITING_INPUT"},f.onSend=function(e){var r=a.apiUrl+"/public/info/time";return t.get(r).then(function(t){var r=new Date(t.data.time).toISOString();return s.encryptAndSend(e,r,f.method).then(function(e){if(e.data.success===!0)u.update(),f.transactionId=e.data.transactionId,f.state="SUCCESS",f.card={},c.getItemName(f.item).then(function(e){l.success("SHOP_PAYMENT_SUCCESS",{name:e})}),c.sendShopTrackingEvents("SUCCESS",f.item.id,f.method.id);else switch(f.state="FAILURE",e.data.message){case"LIMIT_EXCEEDED":f.errorType="LIMIT_EXCEEDED";break;case"RISK_CHECK_FAILED":f.errorType="RISK_CHECK_FAILED";break;case"CONNECTION_FAILED:422":f.errorType="USER_DATA";break;default:f.errorType="HTTP_ERROR"}})["catch"](function(e){f.state="FAILURE",f.errorType="HTTP_ERROR",f.errorMsg=e.data.errorDetail.content.instructions})})["catch"](function(){l.error("ERROR_SERVER")})}}],controllerAs:"AdyenController",templateUrl:"shop/payment-details/payment-steps/adyen/adyen.html",transclude:!0}),angular.module("hotel.button.native.modal",["client.native.service","form","hotel.beta.navigation","hotel.button.native.modal.controller","native.hotel.code","native.hotel.download","native.hotel.launch","spinner","templates","ui.bootstrap"]).factory("nativeHotelModal",["$uibModal",function(e){var t={};return t.open=function(){return e.open({controller:"NativeHotelModalController",size:"md",templateUrl:"common/header/hotel-button-native/modal/native-hotel-modal.html",windowClass:"hotel-button-native-modal",controllerAs:"$ctrl"}).result},t}]),angular.module("hotel.button.native.modal.controller",["client.native.service","copy.to.clipboard","events","ui.bootstrap"]).controller("NativeHotelModalController",["$rootScope","$scope","$timeout","$uibModalInstance","EVENTS","Session","nativeHotelService",function(e,t,r,n,o,a,i){var s=this;s.loading=!0,s.url="",s.ticket="",s.error=!1,s.userName=a.user.name,i.start().then(function(t){s.url=t.url+"."+encodeURIComponent(s.userName),s.ticket=t.ticket+"."+encodeURIComponent(s.userName),s.error=!1,s.loading=!1,e.$broadcast(o.clientNativeOpen)})["catch"](function(e){switch(s.loading=!1,e){case"stop":case"close":return void s.close();case"error":default:return void(s.error=!0)}}),t.$on(o.clientOpen,function(){i.stop()}),t.$on("client-native-close-soon",function(){r(function(){s.close()},3e3)}),s.close=function(){e.$broadcast(o.clientNativeClose),n.close()},s.copySupported=!0,n.result.then(function(){i.stop()},function(){i.stop()})}]),angular.module("copy.to.clipboard",[]).factory("copyToClipboard",["$document",function(e){var t={};return t.copy=function(t){var r=angular.element("");r.val(t),r.css({position:"absolute",opacity:0});var n=e.prop("body");n.appendChild(r[0]),r.select(),e[0].execCommand("copy"),r.remove()},t}]),angular.module("native.hotel.launch",[]).component("nativeHotelLaunch",{controller:["$rootScope",function(e){var t=this;t.clicked=function(){e.$broadcast("client-native-close-soon")}}],bindings:{url:"@"},controllerAs:"$ctrl",templateUrl:"common/header/hotel-button-native/launch/native-hotel-launch.html"}),angular.module("native.hotel.code",["copy.to.clipboard"]).component("nativeHotelCode",{controller:["$rootScope","copyToClipboard",function(e,t){var r=this;r.copied=!1,r.disabled=!1,r.copy=function(){r.code&&(r.disabled=!0,t.copy(r.code),r.copied=!0,e.$broadcast("client-native-close-soon"))}}],bindings:{code:"@"},controllerAs:"$ctrl",templateUrl:"common/header/hotel-button-native/launch/native-hotel-code.html"}),angular.module("hotel.beta.navigation",["hotel.permissions","locale","templates"]).component("habboHotelBetaNavigation",{controller:["HasClientPermission",function(e){var t=this;t.visible=!1,t.client=e.to("v2").then(function(e){t.visible=e})}],controllerAs:"HotelBetaNavigationController",templateUrl:"common/header/hotel-button-native/hotel-beta-navigation/hotel-beta-navigation.html"}),angular.module("native.hotel.download",["client.native.service","spinner"]).component("nativeHotelDownload",{controller:function(){var e=this,t="NATIVE_HOTEL_DOWNLOAD_";e.translationKey=t+e.platform},bindings:{platform:"@",url:"@"},controllerAs:"$ctrl",templateUrl:"common/header/hotel-button-native/download/native-hotel-download.html"}).component("nativeHotelDownloads",{controller:["nativeHotelDownloadService",function(e){var t=this;t.urls=[],e.getDownloadUrls().then(function(e){t.urls=e})}],controllerAs:"$ctrl",template:'

'}).component("nativeHotelDownloadsFaq",{controller:["nativeHotelDownloadService",function(e){var t=this;t.url=null,e.getFaqUrl().then(function(e){t.url=e})}],controllerAs:"$ctrl",template:'

'}),angular.module("remote.data",[]).directive("habboRemoteData",function(){function e(e){return"remoteData"+t(e)}function t(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return"$"!==e[0]}return{restrict:"A",require:["^form","ngModel"],link:function(t,n,o,a){var i,s=a[0],l=a[1],c=t.$eval(o.habboRemoteData);t.$on("remote-data-invalid",function(t,r){_(c).includes(r)&&(i=e(r),l.$setValidity(i,!1))}),t.$watch(function(){return l.$viewValue},function(){i&&_(s).keys().filter(r).forEach(function(e){s[e].$setValidity(i,!0)})})}}}),angular.module("password.pattern",[]).directive("habboPasswordPattern",function(){return{require:"ngModel",restrict:"A",link:function(e,t,r,n){function o(){var e=n.$viewValue;return!e||n.$pristine||i(e)}function a(e){n.$setValidity("passwordPattern",e)}function i(e){return/(?=.*[A-Za-z])(?=.*[0-9-=?!@:.])/.test(e)}e.$watch(o,a)}}}),angular.module("password.name",[]).directive("habboPasswordName",function(){return{require:"ngModel",restrict:"A",link:function(e,t,r,n){function o(e){return a&&(_(e).includes(a)||_(e).includes(i))}var a,i;r.$observe("habboPasswordName",function(e){a=e,i=a.split("").reverse().join(""),n.$validate()}),n.$validators.passwordName=function(e,t){return n.$isEmpty(e)||!o(t)}}}}),angular.module("password.email",[]).directive("habboPasswordEmail",function(){return{require:"ngModel",restrict:"A",link:function(e,t,r,n){function o(e){return a&&(_(e).includes(a)||_(e).includes(i))}var a,i;r.$observe("habboPasswordEmail",function(e){a=e,i=a.split("").reverse().join(""),n.$validate()}),n.$validators.passwordEmail=function(e,t){return n.$isEmpty(e)||!o(t)}}}}),angular.module("matches",[]).directive("habboMatches",function(){return{require:["^form","ngModel"],restrict:"A",scope:{habboMatches:"@"},link:function(e,t,r,n){function o(){var t=i[e.habboMatches],r=s.$viewValue;return!r||s.$pristine||t.$invalid||t.$viewValue===r}function a(e){s.$setValidity("matches",e)}var i=n[0],s=n[1];e.$watch(o,a)}}}),angular.module("email",[]).directive("habboEmail",function(){var e=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;return{require:"ngModel",restrict:"A",link:function(t,r,n,o){o&&o.$validators.email&&(o.$validators.email=function(t){return o.$isEmpty(t)||e.test(t)})}}}),angular.module("password.strength.service",[]).factory("passwordStrength",function(){var e="abcdefghijklmnopqrstuvwxyz",t="01234567890",r=/\d/g,n="\\!@#$%&/()=?¿",o=/[$-\/:-?{-~!^_`\[\]]/g,a=/(?=([a-z]{2}))/g,i=/(?=([A-Z]{2}))/g,s=/(?=(\d{2}))/g,l=/^[0-9]*$/g,c=/^([a-z]|[A-Z])*$/g;return function(u){var f,d,h,p,m=0,g={pos:{},neg:{}},b={pos:{},neg:{seqLetter:0,seqNumber:0,seqSymbol:0}};if(u){for(g.pos.lower=u.match(/[a-z]/g),g.pos.upper=u.match(/[A-Z]/g),g.pos.numbers=u.match(r),g.pos.symbols=u.match(o),g.pos.middleNumber=u.slice(1,-1).match(r),g.pos.middleSymbol=u.slice(1,-1).match(o),b.pos.lower=g.pos.lower?g.pos.lower.length:0,b.pos.upper=g.pos.upper?g.pos.upper.length:0,b.pos.numbers=g.pos.numbers?g.pos.numbers.length:0,b.pos.symbols=g.pos.symbols?g.pos.symbols.length:0,h=_.reduce(b.pos,function(e,t){return e+Math.min(1,t)},0),b.pos.numChars=u.length,h+=b.pos.numChars>=8?1:0,b.pos.requirements=h>=3?h:0,b.pos.middleNumber=g.pos.middleNumber?g.pos.middleNumber.length:0,b.pos.middleSymbol=g.pos.middleSymbol?g.pos.middleSymbol.length:0,g.neg.consecLower=u.match(a),g.neg.consecUpper=u.match(i),g.neg.consecNumbers=u.match(s),g.neg.onlyNumbers=u.match(l),g.neg.onlyLetters=u.match(c),b.neg.consecLower=g.neg.consecLower?g.neg.consecLower.length:0,b.neg.consecUpper=g.neg.consecUpper?g.neg.consecUpper.length:0,b.neg.consecNumbers=g.neg.consecNumbers?g.neg.consecNumbers.length:0,p=0;p0},s.enableAvatarPerk=function(){return s.totalTokens<=0||!s.hasAvatarPerksAvailable()?void i.error("ERROR_SERVER"):(s.selectionInProgress=!0,e.post(r.apiUrl+"/settings/wallet/perks/enable-avatar-perk",{uniqueId:s.avatar.uniqueId}).then(function(e){return s.selectionInProgress=!1,200===e.status?(n.location.href="/settings/wallet",!0):void t.reject("approve-error")}))},s.disableAvatarPerk=function(){return s.selectionInProgress=!0,e.post(r.apiUrl+"/settings/wallet/perks/disable-avatar-perk",{uniqueId:s.avatar.uniqueId}).then(function(e){return s.selectionInProgress=!1,200===e.status?(n.location.href="/settings/wallet",!0):void t.reject("approve-error")})},s.enableFurniturePerk=function(){return s.selectionInProgress=!0,e.post(r.apiUrl+"/settings/wallet/perks/enable-furni-perk",{uniqueId:s.avatar.uniqueId}).then(function(e){return s.selectionInProgress=!1,200===e.status?(n.location.href="/settings/wallet",!0):void t.reject("approve-error")})},s.disableFurniturePerk=function(){return s.selectionInProgress=!0,e.post(r.apiUrl+"/settings/wallet/perks/disable-furni-perk",{uniqueId:s.avatar.uniqueId}).then(function(e){return s.selectionInProgress=!1,200===e.status?(n.location.href="/settings/wallet",!0):void t.reject("approve-error")})}}],controllerAs:"AvatarPerkSelectorController",templateUrl:"settings/wallet-settings/avatar-perk-search/avatar-perk-selector.html"}),angular.module("avatar.perk.search",["avatar.perk.notification","avatar.perk.selector","by.name.description.or.motto.filter","empty.results","form","templates"]).component("habboAvatarPerkSearch",{bindings:{avatars:"<"},controller:["$window","Session",function(e,t){var r=this;r.totalTokens=t.user.totalTokens,r.hasFurniturePerk=t.user.hasFurniturePerk,r.avatarsWithPerks=t.user.avatarsWithPerks,r.getTotalTokens=function(){return r.totalTokens},r.availableAvatarPerks=function(){return Math.min(0,r.totalTokens-r.avatarsWithPerks.length)},r.enabledAvatarPerkCount=function(){return r.avatarsWithPerks.length},r.furniturePerkEnabled=function(){return r.hasFurniturePerk}}],controllerAs:"AvatarPerkSearchController",templateUrl:"settings/wallet-settings/avatar-perk-search/avatar-perk-search.html"}),angular.module("avatar.perk.notification",["locale","security","templates"]).component("habboAvatarPerkNotification",{controller:["$window","Session",function(e,t){var r=this;r.totalTokens=t.user.totalTokens,r.hasFurniturePerk=t.user.hasFurniturePerk,r.avatarsWithPerks=t.user.avatarsWithPerks,r.hasTokens=function(){return r.totalTokens>0},r.availableAvatarPerks=function(){for(var e=0,t=0;t0},r.hasAvailableFurniturePerk=function(){return!r.hasFurniturePerk}}],controllerAs:"HabboAvatarPerkNotificationController",templateUrl:"settings/wallet-settings/avatar-perk-notification/avatar-perk-notification.html"}),angular.module("two.factor.auth.register.email.modal",["templates","two.factor.auth.register.email","ui.bootstrap"]).factory("twoFactorAuthRegisterEmailModal",["$uibModal",function(e){var t,r={};return r.open=function(){return t=e.open({templateUrl:"settings/two-factor-auth/register-email/register-email-modal.html"}),t.result},r}]),angular.module("two.factor.auth.register.email",["form","locale","notifier","security.session.service","templates","two.factor.auth.service"]).component("twoFactorAuthRegisterEmail",{bindings:{onSuccess:"&",onCancel:"&"},controller:["notifier","Session","twoFactorAuth",function(e,t,r){var n=this;n.loading=!0,n.error=!1,n.errorCode="",n.email="",n.emailCode="",n.sameAsHabboEmail=!1,n.hasVerifiedEmail=t.hasVerifiedHabboCredential(),n.isCodesComplete=function(){return!!n.emailCode},n.startRegistration=function(){r.startRegistration("EMAIL",n.email).then(function(){e.success("TWO_FACTOR_AUTHENTICATION_EMAIL_CODE_SENT")})["catch"](function(t){n.error=!0,n.errorCode=t.errors[0],e.error("TWO_FACTOR_AUTH_REGISTRATION_ERROR")})["finally"](function(){n.loading=!1})},n.completeRegistration=function(){r.completeRegistration(null,n.email,n.emailCode,null,"EMAIL").then(function(r){n.email="",r.emailVerified===!0&&t.update({emailVerified:!0}),n.onSuccess(),e.success("TWO_FACTOR_AUTH_REGISTERED_OK")})["catch"](function(t){n.error=!0,n.errorCode=t.data.originalMessages[0],n.isInvalidAuthCode()?e.error("TWO_FACTOR_AUTHENTICATION_INCORRECT_CODE"):e.error("TWO_FACTOR_AUTH_REGISTRATION_ERROR")})["finally"](function(){n.loading=!1})},n.isInvalidAuthCode=function(){return!(!n.error||"2fa.invalid.email.code"!==n.errorCode)},n.isInvalidEmail=function(){return!n.email},n.setSameHabboEmail=function(){n.sameAsHabboEmail?n.email=t.user.email:n.email=""}}],controllerAs:"TwoFactorAuthRegisterEmailController",templateUrl:"settings/two-factor-auth/register-email/register-email.html"}),angular.module("two.factor.auth.register.authenticator.modal",["templates","two.factor.auth.register.authenticator","ui.bootstrap"]).factory("twoFactorAuthRegisterAuthenticatorModal",["$uibModal",function(e){var t,r={};return r.open=function(){return t=e.open({templateUrl:"settings/two-factor-auth/register-authenticator/register-authenticator-modal.html"}),t.result},r}]),angular.module("two.factor.auth.register.authenticator",["form","locale","notifier","security.session.service","spinner","templates","two.factor.auth.service","two.factor.code"]).component("twoFactorAuthRegisterAuthenticator",{bindings:{onSuccess:"&",onCancel:"&"},controller:["Session","twoFactorAuth","notifier",function(e,t,r){var n=this;n.loading=!0,n.error=!1,n.errorCode="",n.qrCode="",n.secretCode="",n.email="",n.emailCode="",n.twoFactorCode="",n.isCodesComplete=function(){return!(!n.twoFactorCode||n.email&&!n.emailCode)},n.startRegistration=function(){t.startRegistration("AUTHENTICATOR",null).then(function(e){n.qrCode=e.qrCode,n.email=e.email,n.secretCode=e.secretCode,n.email&&r.success("TWO_FACTOR_AUTHENTICATION_EMAIL_CODE_SENT")})["catch"](function(e){n.error=!0,n.errorCode=e.errors[0],r.error("TWO_FACTOR_AUTH_REGISTRATION_ERROR")})["finally"](function(){n.loading=!1})},n.startRegistration(),n.completeRegistration=function(){t.completeRegistration(n.twoFactorCode,n.email,n.emailCode,n.secretCode,"AUTHENTICATOR").then(function(t){n.qrCode="",n.email="",n.secretCode="",n.onSuccess(),r.success("TWO_FACTOR_AUTH_REGISTERED_OK"),t.emailVerified===!0&&e.update({emailVerified:!0})})["catch"](function(e){n.error=!0,n.errorCode=e.data.originalMessages[0],n.isInvalidAuthCode()?r.error("TWO_FACTOR_AUTHENTICATION_INCORRECT_CODE"):r.error("TWO_FACTOR_AUTH_REGISTRATION_ERROR")})["finally"](function(){n.loading=!1})},n.isInvalidAuthCode=function(){return!(!n.error||"2fa.invalid.auth.code"!==n.errorCode)}}],controllerAs:"TwoFactorAuthRegisterAuthenticatorController",templateUrl:"settings/two-factor-auth/register-authenticator/register-authenticator.html"}),angular.module("two.factor.auth.disable.modal",["templates","two.factor.auth.disable","ui.bootstrap"]).controller("TwoFactorAuthDisableModalController",["twoFactorAuthStatus",function(e){var t=this;t.twoFactorAuthStatus=e}]).factory("twoFactorAuthDisableModal",["$uibModal",function(e){var t,r={};return r.open=function(r){return this.twoFactorAuthStatus=r,t=e.open({controller:"TwoFactorAuthDisableModalController",controllerAs:"TwoFactorAuthDisableModalController",templateUrl:"settings/two-factor-auth/disable/two-factor-auth-disable-modal.html",resolve:{twoFactorAuthStatus:r}}),t.result},r}]),angular.module("two.factor.auth.disable",["form","locale","notifier","security.session.service","templates","two.factor.auth.service","two.factor.code"]).component("twoFactorAuthDisable",{bindings:{onSuccess:"&",onCancel:"&",twoFactorAuthStatus:"="},controller:["$rootScope","EVENTS","notifier","Session","twoFactorAuth",function(e,t,r,n,o){var a=this;a.loading=!0,a.error=!1,a.errorCode="",a.emailCode="",a.authenticatorCode="",a.emailBackupEnabled=!1,a.isCodesComplete=function(){return!!("EMAIL"===a.twoFactorAuthStatus.twoFactorMethod&&a.emailCode||"AUTHENTICATOR"===a.twoFactorAuthStatus.twoFactorMethod&&a.authenticatorCode)},a.sendEmailCode=function(){o.sendEmailCode().then(function(){r.success("TWO_FACTOR_AUTHENTICATION_EMAIL_CODE_SENT")})["catch"](function(e){a.error=!0,a.errorCode=e.data.originalMessages[0],r.error("TWO_FACTOR_AUTH_REGISTRATION_ERROR")})["finally"](function(){a.loading=!1})},a.disableTwoFactorAuth=function(){o.disable(a.authenticatorCode,a.emailCode).then(function(){a.onSuccess(),r.success("TWO_FACTOR_AUTHENTICATION_DISABLED")})["catch"](function(e){a.error=!0,a.errorCode=e.data.originalMessages[0],a.isInvalidAuthCode()?r.error("TWO_FACTOR_AUTHENTICATION_INCORRECT_CODE"):r.error("TWO_FACTOR_AUTH_REGISTRATION_ERROR")})["finally"](function(){a.loading=!1})},a.askForBackup=function(){a.loading=!0,o.sendEmailCode().then(function(){a.twoFactorAuthStatus.twoFactorMethod="EMAIL",r.success("TWO_FACTOR_AUTHENTICATION_EMAIL_CODE_SENT")})["catch"](function(e){a.error=!0,a.errorCode=e.data.originalMessages[0],r.error("TWO_FACTOR_AUTH_REGISTRATION_ERROR")})},a.enableTwoFactorAuth=function(){o.enable(a.authenticatorCode,a.emailCode).then(function(){a.onSuccess(),r.success("TWO_FACTOR_AUTHENTICATION_ON")})["catch"](function(e){a.error=!0,a.errorCode=e.data.originalMessages[0],a.isInvalidAuthCode()?r.error("TWO_FACTOR_AUTHENTICATION_INCORRECT_CODE"):r.error("TWO_FACTOR_AUTH_REGISTRATION_ERROR")})["finally"](function(){a.loading=!1})},a.isInvalidAuthCode=function(){return!(!a.error||"2fa.invalid.email.code"!==a.errorCode&&"2fa.invalid.auth.code"!==a.errorCode)},"AUTHENTICATOR"===a.twoFactorAuthStatus.twoFactorMethod&&o.emailAsBackupEnabled().then(function(e){a.emailBackupEnabled=e})}],controllerAs:"TwoFactorAuthDisableController",templateUrl:"settings/two-factor-auth/disable/two-factor-auth-disable.html"}),angular.module("gdpr.safety.questions.modal",["gdpr.safety.questions.form","templates","ui.bootstrap"]).controller("GdprSafetyQuestionsModalController",["type",function(e){var t=this;t.$onInit=function(){t.type=e}}]).factory("gdprSafetyQuestionsModal",["$uibModal",function(e){var t,r={};return r.open=function(r){return t=e.open({templateUrl:"settings/privacy-settings/gdpr-safety-questions/gdpr-safety-questions-modal.html",resolve:{type:function(){return r}},controller:"GdprSafetyQuestionsModalController",bindToController:!0,controllerAs:"$ctrl"}),t.result},r}]),angular.module("gdpr.safety.questions.form",["form","locale","safety.question.filters","safety.question.form.inputs","templates"]).component("gdprSafetyQuestionsForm",{bindings:{type:"<",buttonTranlationKey:"<",onResult:"&",onCancel:"&"},controller:["$scope","$window","QUESTIONS",function(e,t,r){var n=this;n.saveInProgress=!1,n.selectedQuestion1=r[0],n.selectedQuestion2=r[1],n.password=n.answer1=n.answer2="",n.submit=function(){e.safetyQuestionsForm.$valid&&n.onResult({result:{selectedQuestion1:n.selectedQuestion1.questionId,selectedQuestion2:n.selectedQuestion2.questionId,answer1:n.answer1,answer2:n.answer2,password:n.password}})}}],controllerAs:"$ctrl",templateUrl:"settings/privacy-settings/gdpr-safety-questions/gdpr-safety-questions-form.html"}),angular.module("activation.status",["locale","message.container","notifier","security","settings.service","templates"]).component("habboActivationStatus",{controller:["Session","notifier","settings",function(e,t,r){var n=this;n.user=e.user,n.resendInProgress=!1,n.isSent=!1,n.resend=function(){n.resendInProgress=!0,r.resendActivationEmail().then(function(){n.isSent=!0,t.success("ACTIVATION_RESEND_SUCESS")})["catch"](function(){t.error("ERROR_SERVER")})["finally"](function(){n.resendInProgress=!1})}}],controllerAs:"ActivationStatusController",templateUrl:"settings/email-change/activation-status/activation-status.html"}),angular.module("avatar.selector",["avatar.service","imager","locale","notifier","security","templates"]).component("habboAvatarSelector",{bindings:{avatar:"<"},controller:["$window","Session","avatar","notifier",function(e,t,r,n){var o=this;o.isSelected=o.avatar.uniqueId===t.user.uniqueId,o.selectionInProgress=!1,o.select=function(){o.selectionInProgress=!0,r.select(o.avatar).then(function(){e.location.href="/settings/avatars"})["catch"](function(){n.error("ERROR_SERVER"),o.selectionInProgress=!1})}}],controllerAs:"AvatarSelectorController",templateUrl:"settings/avatar-selection/avatar-search/avatar-selector.html"}),angular.module("avatar.search",["avatar.selector","by.name.description.or.motto.filter","empty.results","form","templates"]).component("habboAvatarSearch",{bindings:{avatars:"<"},controllerAs:"AvatarSearchController",templateUrl:"settings/avatar-selection/avatar-search/avatar-search.html"}),angular.module("avatar.name.check",["avatar.service"]).directive("habboAvatarNameCheck",["$q","avatar",function(e,t){return{restrict:"A",require:"ngModel",link:function(r,n,o,a){a.$asyncValidators.name=function(r,n){return n?t.isNameAvailable(n):e.when()}}}}]),angular.module("avatar.create.modal",["avatar.create.form","templates","ui.bootstrap"]).factory("avatarCreateModal",["$uibModal",function(e){var t,r={};return r.open=function(){return t=e.open({size:"sm",templateUrl:"settings/avatar-selection/avatar-create/avatar-create-modal.html"}),t.result},r}]),angular.module("avatar.create.form",["avatar.name.check","avatar.service","hCAPTCHA","locale","notifier","templates"]).component("habboAvatarCreateForm",{bindings:{onCreate:"&",onCancel:"&"},controller:["$q","$scope","$window","CaptchaConfig","avatar","hCaptchaService","notifier",function(e,t,r,n,o,a,i){var s=this;s.createInProgress=!1,s.captchaConfig={provider:null},t.widgetId=e.defer(),t.setWidgetId=function(e){t.widgetId.resolve(e)},s.submit=function(){if(t.avatarCreateForm.$valid&&!t.avatarCreateForm.$pending)return s.createInProgress=!0,n.get().$promise.then(function(e){return"hcaptcha"===e.provider?t.widgetId.promise.then(function(t){return a.executeWithConfig(t,e)}).then(s.create):s.create()})},s.$onInit=function(){n.get().$promise.then(function(e){s.captchaConfig=e})},s.create=function(e){o.create(s.name,e).then(s.onCreate)["catch"](function(e){403!==e.status&&i.error("ERROR_SERVER")})["finally"](function(){s.createInProgress=!1})}}],controllerAs:"AvatarCreateFormController",templateUrl:"settings/avatar-selection/avatar-create/avatar-create-form.html"}),angular.module("avatar.create",["avatar.create.modal","locale","security","templates"]).directive("habboAvatarCreate",["$window","Session","avatarCreateModal","safetyLockModal",function(e,t,r,n){return{restrict:"E",scope:{avatars:"="},templateUrl:"settings/avatar-selection/avatar-create/avatar-create.html",link:function(o){function a(){r.open().then(function(){e.location.href="/settings/avatars"})}o.emailVerified=t.user.emailVerified,o.identityVerified=t.user.identityVerified,o.MAX_AVATARS=t.user.habboClubMember?10:5,o.open=function(){t.isTrusted()?a():n.open().then(a)}}}}]),angular.module("safety.questions.modal",["safety.questions.form","templates","ui.bootstrap"]).factory("safetyQuestionsModal",["$uibModal",function(e){var t,r={};return r.open=function(){return t=e.open({templateUrl:"settings/account-security/safety-questions/safety-questions-modal.html"}),t.result},r}]),angular.module("safety.questions.form",["account.security.service","form","locale","notifier","safety.question.filters","safety.question.form.inputs","templates"]).component("habboSafetyQuestionsForm",{bindings:{onSave:"&",onCancel:"&"},controller:["$scope","$window","QUESTIONS","accountSecurity","notifier",function(e,t,r,n,o){var a=this;a.saveInProgress=!1,a.selectedQuestion1=r[0],a.selectedQuestion2=r[1],a.answer1=a.answer2="",a.save=function(){e.safetyQuestionsForm.$valid&&(a.saveInProgress=!0,n.save(a.selectedQuestion1.questionId,a.answer1,a.selectedQuestion2.questionId,a.answer2,a.password).then(function(){a.onSave(),o.success("ACCOUNT_SECURITY_SAVED_OK")})["catch"](function(t){var r=t.data&&t.data.error;"invalid_password"===r?e.$broadcast("remote-data-invalid","password"):403!==t.status&&o.error("ERROR_SERVER")})["finally"](function(){a.saveInProgress=!1}))}}],controllerAs:"SafetyQuestionsFormController",templateUrl:"settings/account-security/safety-questions/safety-questions-form.html"}),angular.module("safety.lock.disable.modal",["safety.lock.disable.form","templates","ui.bootstrap"]).factory("safetyLockDisableModal",["$uibModal",function(e){var t,r={};return r.open=function(){return t=e.open({templateUrl:"settings/account-security/safety-lock-disable-modal/safety-lock-disable-modal.html"}),t.result},r}]),angular.module("safety.lock.disable.form",["account.security.service","config","form","locale","notifier","router","templates"]).component("habboSafetyLockDisableForm",{bindings:{onDisable:"&",onCancel:"&"},controller:["$scope","$stateParams","accountSecurity","CAPTCHA_EVENTS","notifier",function(e,t,r,n,o){var a=this;a.disableInProgress=!1,a.validation={captchaToken:t.captchaToken},a.disableSafetyLock=function(){e.safetyLockDisableForm.$valid&&(a.disableInProgress=!0,r.disable(a.validation).then(function(){a.onDisable(),o.success("ACCOUNT_SECURITY_DISABLED_OK")})["catch"](function(t){var r=t.data&&t.data.error;"invalid_password"===r?e.$broadcast("remote-data-invalid","password"):403!==t.status&&o.error("ERROR_SERVER"),e.$broadcast(n.reset)})["finally"](function(){a.disableInProgress=!1}))}}],controllerAs:"SafetyLockDisableFormController",templateUrl:"settings/account-security/safety-lock-disable-modal/safety-lock-disable-form.html"}),angular.module("security.login.rpx",["locale","security.rpx"]).directive("habboRpxLogin",["$timeout","rpxSecurity",function(e,t){return{restrict:"E",scope:{},template:'',link:function(r,n){var o=e(t.init);n.on("$destroy",function(){e.cancel(o),t.destroy()})}}}]),angular.module("security.google.connect",["locale","notifier","security.service","templates"]).component("habboGoogleConnect",{bindings:{onLogin:"&",translationKey:"@"},controller:["notifier","security",function(e,t){var r=this;r.loginInProgress=!1,r.googleLogin=function(){r.loginInProgress=!0,t.googleLogin().then(r.onLogin)["catch"](function(t){var r=t.data&&t.data.message;"google.gis.script_not_loaded"===r?e.error("ERROR_GOOGLE_GIS_SCRIPT"):"unknown"!==t.status&&"force.pending"!==t.status&&e.error("ERROR_SERVER")})["finally"](function(){r.loginInProgress=!1})}}],controllerAs:"GoogleConnectController",templateUrl:"security/login/google-connect/google-connect.html"}),angular.module("security.facebook.connect",["locale","notifier","security.service","templates"]).component("habboFacebookConnect",{bindings:{onLogin:"&",translationKey:"@"},controller:["notifier","security",function(e,t){var r=this;r.loginInProgress=!1,r.fbLogin=function(){r.loginInProgress=!0,t.fbLogin().then(r.onLogin)["catch"](function(t){var r=t.data&&t.data.message;"fb.sdk_not_loaded"===r?e.error("ERROR_FB_SDK"):"unknown"!==t.status&&"force.pending"!==t.status&&e.error("ERROR_SERVER")})["finally"](function(){r.loginInProgress=!1})}}],controllerAs:"FacebookConnectController",templateUrl:"security/login/facebook-connect/facebook-connect.html"}),angular.module("recover.password.modal",["claim.password.form","locale","templates","ui.bootstrap"]).controller("RecoverPasswordController",["email",function(e){var t=this;t.email=e}]).factory("recoverPasswordModal",["$uibModal",function(e){var t={};return t.open=function(t){return e.open({controller:"RecoverPasswordController",controllerAs:"RecoverPasswordController",resolve:{email:_.constant(t)},size:"sm",templateUrl:"security/login/claim-password/recover-password-modal.html"}).result},t}]),angular.module("claim.password.form",["form","locale","notifier","password.reset.service","templates"]).component("habboClaimPasswordForm",{bindings:{cancel:"&",emailAddress:"'}),angular.module("captcha.modal",["form","templates","ui.bootstrap"]).controller("CaptchaController",["$scope","$uibModalInstance",function(e,t){e.$watch("captchaToken",function(e){e&&t.close(e)})}]).factory("captchaModal",["$uibModal",function(e){var t={};return t.open=function(){return e.open({controller:"CaptchaController",size:"sm",templateUrl:"security/login/captcha-modal/captcha-modal.html",windowClass:"captcha-modal"}).result},t}]),angular.module("security.apple.connect",["locale","notifier","security.service","templates"]).component("habboAppleConnect",{bindings:{onLogin:"&",translationKey:"@"},controller:["notifier","security",function(e,t){var r=this;r.loginInProgress=!1,r.appleInit=function(){t.appleInit()},r.appleLogin=function(){r.loginInProgress=!0,t.appleLogin().then(r.onLogin)["catch"](function(t){var r=t.data&&t.data.message;"apple.script_not_loaded"===r?e.error("ERROR_APPLE"):"unknown"!==t.status&&"force.pending"!==t.status&&e.error("ERROR_SERVER")})["finally"](function(){r.loginInProgress=!1})}}],controllerAs:"AppleConnectController",templateUrl:"security/login/apple-connect/apple-connect.html"}),angular.module("security.force.twofactor.email.modal",["locale","security.force.service","security.force.twofactor.email.form","templates","ui.bootstrap"]).factory("forceTwoFactorEmailModal",["$uibModal","FORCE",function(e,t){var r={};return r.open=function(r){return e.open({size:"sm",controllerAs:"vm",controller:["$uibModalInstance","email",function(e,t){var r=this;r.email=t}],templateUrl:"security/force/force-twofactor-email/force-twofactor-email-modal.html",resolve:{email:function(){return r.maskedEmail||""}}}).result.then(function(e){return r.force=_.without(r.force,t.TWO_FACTOR_AUTH_EMAIL_CODE),e&&e.emailVerified===!0&&(r.emailVerified=e.emailVerified),r})},r}]),angular.module("security.force.twofactor.email.form",["form","locale","notifier","security.force.service","templates","two.factor.code"]).component("habboForceTwoFactorEmailForm",{bindings:{onDismiss:"&",onSuccess:"&",email:"=?"},controller:["$scope","force","notifier",function(e,t,r){var n=this;n.verifyInProgress=!1,n.code=null,n.setLocationTrusted=!1,n.change=function(){e.forceTwoFactorEmailForm.$valid&&(n.verifyInProgress=!0,t.verify2fa("email",n.code,n.setLocationTrusted).then(function(e){n.onSuccess({user:e}),r.success("2FA_VERIFY_SUCCESS")})["catch"](function(){r.error("2FA_VERIFY_ERROR")})["finally"](function(){n.verifyInProgress=!1}))}}],controllerAs:"ForceTwoFactorEmailFormController",templateUrl:"security/force/force-twofactor-email/force-twofactor-email-form.html"}),angular.module("security.force.twofactor.blacklist.modal",["locale","security.force.service","security.force.twofactor.blacklist.form","templates","ui.bootstrap"]).factory("forceTwoFactorBlacklistModal",["$uibModal","FORCE",function(e,t){var r={};return r.open=function(r){return e.open({size:"no-margin",templateUrl:"security/force/force-twofactor-blacklist/force-twofactor-blacklist-modal.html"}).result.then(function(){return r.force=_.without(r.force,t.TWO_FACTOR_BLACKLISTED_EMAIL),r})},r}]),angular.module("security.force.twofactor.blacklist.form",["form","locale","notifier","security.force.service","templates"]).component("habboForceTwoFactorBlacklistForm",{bindings:{onDismiss:"&",onSuccess:"&"},controller:["$scope","force","notifier",function(e,t,r){var n=this;n.inProgress=!1,n.change=function(){e.forceTwoFactorBlacklistForm.$valid&&(n.inProgress=!0,t.clearBlacklist().then(function(){n.onSuccess(),r.success("FORCED_2FA_CLEAR_BLACKLIST_SUCCESS")})["catch"](function(){r.error("FORCED_2FA_CLEAR_BLACKLIST_ERROR")})["finally"](function(){n.inProgress=!1}))}}],controllerAs:"ForceTwoFactorBlacklistFormController",templateUrl:"security/force/force-twofactor-blacklist/force-twofactor-blacklist-form.html"}),angular.module("security.force.twofactor.app.modal",["locale","security.force.service","security.force.twofactor.app.form","templates","ui.bootstrap"]).factory("forceTwoFactorAppModal",["$uibModal","FORCE",function(e,t){var r={};return r.open=function(r){return e.open({size:"no-margin",templateUrl:"security/force/force-twofactor-app/force-twofactor-app-modal.html"}).result.then(function(e){return e===!0&&r.force.push(t.TWO_FACTOR_AUTH_EMAIL_CODE),r.force=_.without(r.force,t.TWO_FACTOR_AUTH_APP_CODE),r})},r}]),angular.module("security.force.twofactor.app.form",["form","locale","notifier","security.force.service","templates","two.factor.auth.service","two.factor.code"]).component("habboForceTwoFactorAppForm",{bindings:{onDismiss:"&",onSuccess:"&"},controller:["$scope","force","notifier","twoFactorAuth",function(e,t,r,n){var o=this;o.verifyInProgress=!1,o.code=null,o.setLocationTrusted=!1,o.backupAvailable=!1,o.change=function(){e.forceTwoFactorAppForm.$valid&&(o.verifyInProgress=!0,t.verify2fa("authenticator",o.code,o.setLocationTrusted).then(function(){o.onSuccess({useBackup:!1}),r.success("2FA_VERIFY_SUCCESS")})["catch"](function(){r.error("2FA_VERIFY_ERROR")})["finally"](function(){o.verifyInProgress=!1}))},o.askForBackup=function(){o.verifyInProgress=!0,n.sendAuthenticatorBackupCode().then(function(){r.success("TWO_FACTOR_AUTHENTICATION_EMAIL_CODE_SENT"),o.onSuccess({useBackup:!0})})["catch"](function(){r.error("TWO_FACTOR_AUTHENTICATION_EMAIL_CODE_SENT_ERROR")})["finally"](function(){o.verifyInProgress=!1})},n.emailAsBackupEnabled().then(function(e){o.backupAvailable=e})}],controllerAs:"ForceTwoFactorAppFormController",templateUrl:"security/force/force-twofactor-app/force-twofactor-app-form.html"}),angular.module("security.force.tos.modal",["locale","security.force.service","security.force.tos.form","templates","ui.bootstrap"]).factory("forceTOSModal",["$uibModal","FORCE",function(e,t){var r={};return r.open=function(r){return e.open({size:"sm",templateUrl:"security/force/force-tos/force-tos-modal.html"}).result.then(function(){return r.force=_.without(r.force,t.TOS),r})},r}]),angular.module("security.force.tos.form",["locale","notifier","security.force.service","templates"]).component("habboForceTosForm",{bindings:{onDismiss:"&",onSuccess:"&"},controller:["$scope","force","notifier",function(e,t,r){var n=this;n.acceptInProgress=!1,n.accept=function(){n.acceptInProgress=!0,t.acceptTOS().then(function(){n.onSuccess(),r.success("FORCED_TOS_CHANGE_SUCCESS")})["catch"](function(){r.error("ERROR_SERVER")})["finally"](function(){n.acceptInProgress=!1})}}],controllerAs:"ForceTosFormController",templateUrl:"security/force/force-tos/force-tos-form.html"}),angular.module("security.force.rpx.modal",["locale","security.force.rpx.form","security.force.service","templates","ui.bootstrap"]).controller("ForceRpxMigrationController",["emailAddress",function(e){var t=this;t.oldEmailAddress=e}]).factory("forceRpxMigrationModal",["$uibModal","FORCE",function(e,t){var r={};return r.open=function(r){return e.open({controller:"ForceRpxMigrationController",controllerAs:"ForceRpxMigrationController",size:"sm",templateUrl:"security/force/force-rpx-migration/force-rpx-migration-modal.html",resolve:{emailAddress:_.constant(r.email)}}).result.then(function(e){return r.email=e,r.force=_.without(r.force,t.RPX_MIGRATION),r})},r}]),angular.module("security.force.rpx.form",["form","locale","notifier","security.force.service","templates"]).component("habboForceRpxMigrationForm",{bindings:{oldEmailAddress:"@",onDismiss:"&",onSuccess:"&"},controller:["$scope","force","notifier",function(e,t,r){var n=this;n.saveInProgress=!1,n.passwords={},n.save=function(){e.forceRpxMigrationChangeForm.$valid&&(n.saveInProgress=!0,t.rpxMigration(n.emailAddress,n.passwords.password).then(function(e){n.onSuccess({email:e.email}),r.success("RPX_MIGRATION_FORCE_CHANGE_SUCCESS")})["catch"](function(t){var n=t.data&&t.data.error;"password.too_similar_to_username"===n?e.$broadcast("remote-data-invalid","passwordName"):"password.too_similar_to_email"===n?e.$broadcast("remote-data-invalid","passwordEmail"):"password.used_earlier"===n?e.$broadcast("remote-data-invalid","passwordUsed"):"changeEmail.invalid_email"===n?e.$broadcast("remote-data-invalid","emailInvalid"):"changeEmail.email_already_in_use"===n?e.$broadcast("remote-data-invalid","emailUsedInChange"):r.error("ERROR_SERVER")})["finally"](function(){n.saveInProgress=!1}))}}],controllerAs:"ForceRpxMigrationFormController",templateUrl:"security/force/force-rpx-migration/force-rpx-migration-form.html"}),angular.module("security.force.password.modal",["locale","security.force.password.form","security.force.service","templates","ui.bootstrap"]).factory("forcePasswordModal",["$uibModal","FORCE",function(e,t){var r={};return r.open=function(r){return e.open({size:"sm",templateUrl:"security/force/force-password/force-password-modal.html"}).result.then(function(){return r.force=_.without(r.force,t.password),r})},r}]),angular.module("security.force.password.form",["form","locale","notifier","security.force.service","templates"]).component("habboForcePasswordForm",{bindings:{onDismiss:"&",onSuccess:"&"},controller:["$scope","force","notifier",function(e,t,r){var n=this;n.changeInProgress=!1,n.passwords={},n.change=function(){e.forcePasswordChangeForm.$valid&&(n.changeInProgress=!0,t.changePassword(n.passwords.password).then(function(){n.onSuccess(),r.success("PASSWORD_CHANGE_SUCCESS")})["catch"](function(t){var n=t.data&&t.data.error;"password.too_similar_to_username"===n?e.$broadcast("remote-data-invalid","passwordName"):"password.too_similar_to_email"===n?e.$broadcast("remote-data-invalid","passwordEmail"):"password.used_earlier"===n?e.$broadcast("remote-data-invalid","passwordUsed"):r.error("ERROR_SERVER")})["finally"](function(){n.changeInProgress=!1}))}}],controllerAs:"ForcePasswordFormController",templateUrl:"security/force/force-password/force-password-form.html"}),angular.module("security.force.email.modal",["locale","security.force.email.form","security.force.service","templates","ui.bootstrap"]).controller("ForceEmailController",["emailAddress",function(e){var t=this; t.oldEmailAddress=e}]).factory("forceEmailModal",["$uibModal","FORCE",function(e,t){var r={};return r.open=function(r){return e.open({controller:"ForceEmailController",controllerAs:"ForceEmailController",size:"sm",templateUrl:"security/force/force-email/force-email-modal.html",resolve:{emailAddress:_.constant(r.email)}}).result.then(function(e){return r.email=e,r.force=_.without(r.force,t.email),r})},r}]),angular.module("security.force.email.form",["form","locale","notifier","security.force.service","templates"]).component("habboForceEmailForm",{bindings:{oldEmailAddress:"@",onDismiss:"&",onSuccess:"&"},controller:["$scope","force","notifier",function(e,t,r){var n=this;n.saveInProgress=!1,n.save=function(){e.forceEmailChangeForm.$valid&&(n.saveInProgress=!0,t.changeEmail(n.emailAddress).then(function(e){n.onSuccess({email:e.email}),r.success("EMAIL_FORCE_CHANGE_SUCCESS")})["catch"](function(t){var n=t.data&&t.data.error;"changeEmail.invalid_email"===n?e.$broadcast("remote-data-invalid","emailInvalid"):"changeEmail.email_already_in_use"===n?e.$broadcast("remote-data-invalid","emailUsedInChange"):r.error("ERROR_SERVER")})["finally"](function(){n.saveInProgress=!1}))}}],controllerAs:"ForceEmailFormController",templateUrl:"security/force/force-email/force-email-form.html"}),angular.module("room.icon",["remove.on.error","show.on.load","templates"]).component("habboRoomIcon",{bindings:{url:"@"},controllerAs:"RoomIconController",templateUrl:"profile/item-lists/room-icon/room-icon.html"}),angular.module("report.service",["config"]).factory("reporter",["$http","CONFIG",function(e,t){function r(e){return t.extraDataUrl+"/private/creation/"+e.id+"/report"}var n={};return n.sendReport=function(t){return e.post(r(t),{reason:t.reportReason})},n}]),angular.module("report.modal",["report.form","templates","ui.bootstrap"]).controller("ReportController",["creation",function(e){var t=this;t.creation=e}]).factory("reportModal",["$uibModal",function(e){var t,r={};return r.open=function(r){return t=e.open({size:"lg",controller:"ReportController",controllerAs:"ReportController",templateUrl:"profile/creation/report/report-modal.html",resolve:{creation:_.constant(r)}}),t.result},r}]),angular.module("report.form",["ngMessages","locale","notifier","report.service","reported.photos","templates"]).component("habboReportForm",{bindings:{creation:"<",onSuccess:"&",onCancel:"&"},controller:["$location","$scope","notifier","reportedPhotos","reporter",function(e,t,r,n,o){var a=this;a.sendInProgress=!1,a.reasonCodes=[19,20,1,32,8],a.send=function(){t.reportForm.$valid&&(a.sendInProgress=!0,o.sendReport(a.creation).then(function(){a.onSuccess(),n.save(a.creation.id),e.path("/community/photos").replace(),r.success("REPORT_SUCCESS")})["catch"](function(e){429===e.status?r.error("ERROR_TOO_MANY_REPORTS"):401!==e.status&&r.error("ERROR_SERVER")})["finally"](function(){a.sendInProgress=!1}))}}],controllerAs:"ReportFormController",templateUrl:"profile/creation/report/report-form.html"}),angular.module("report",["locale","report.modal","templates"]).component("habboReport",{bindings:{creation:"<"},controller:["reportModal",function(e){var t=this;t.click=function(){e.open(t.creation)}}],controllerAs:"ReportController",templateUrl:"profile/creation/report/report.html"}),angular.module("photo.delete.service",["ngResource","config","storage"]).factory("photoDelete",["$http","CONFIG","httpCache",function(e,t,r){var n={};return n["delete"]=function(n){return e["delete"](t.extraDataUrl+"/private/photo/"+n).then(function(){r.shortCache.removeAll()})},n}]),angular.module("photo.delete",["locale","photo.delete.service","security","templates"]).component("habboPhotoDelete",{bindings:{creation:"<"},controller:["$location","$translate","$window","Session","notifier","photoDelete",function(e,t,r,n,o,a){function i(){a["delete"](s.creation.id).then(function(){e.path("/profile/"+n.user.name).replace(),o.success("PHOTO_DELETION_SUCCESS")})["catch"](function(e){401!==e.status&&o.error("ERROR_SERVER")})}var s=this;s["delete"]=function(){t("PHOTO_DELETION_CONFIRMATION").then(function(e){r.confirm(e)&&i()})}}],controllerAs:"PhotoDeleteController",templateUrl:"profile/creation/photo-delete/photo-delete.html"}),angular.module("interstitial.service",["client.messenger","google.analytics"]).factory("interstitial",["$rootScope","$timeout","$window","clientMessenger","googleAnalytics",function(e,t,r,n,o){var a={},i=15e3;return a.started=!1,a.loaded=!1,a.start=function(s){function l(e){var r=e.originalEvent.data&&e.originalEvent.data.category;if("interstitial"===r){var n=e.originalEvent.data&&e.originalEvent.data.name;g[n]&&t(function(){g[n](e.originalEvent.data)})}}function c(){a.loaded=!0,m=e.$on("$locationChangeStart",function(e){e.preventDefault()})}function u(){o.trackEvent("Interstitial","Start"),t.cancel(b)}function f(e){var t=_.upperFirst(e.name),r=e.remaining||0,n=e.duration?1e3*(e.duration-r):null;o.trackEvent("Interstitial","End",t,n),p("complete")}function d(){o.trackEvent("Interstitial","Error","Player"),p("incomplete")}function h(){o.trackEvent("Interstitial","Error","Timeout"),p("incomplete")}function p(e){a.started=!1,a.loaded=!1,t.cancel(b),angular.element(r).off("message",l),m&&m(),"midroll"===s&&n.handle({interstitial:e})}var m,g={load:c,start:u,complete:f,skip:f,error:d},b=t(h,i);angular.element(r).on("message",l),a.started=!0,o.trackEvent("Interstitial","Init")},a.hasStarted=function(){return a.started},a.hasLoaded=function(){return a.loaded},a}]),angular.module("interstitial",["config","interstitial.service","locale","templates"]).component("habboInterstitial",{controller:["$scope","CONFIG","interstitial",function(e,t,r){var n=this;n.habboWebAdsUrl=t.habboWebAdsUrl,n.lang=t.lang,e.$watch(r.hasStarted,function(e){n.started=e}),e.$watch(r.hasLoaded,function(e){n.loaded=e})}],controllerAs:"InterstitialController",templateUrl:"hotel/client-common/interstitial/interstitial.html"}),angular.module("client.closed",["hotel.closed","templates"]).component("habboClientClosed",{templateUrl:"hotel/client-common/client-closed/client-closed.html"}),angular.module("client.reload",["locale","templates"]).component("habboClientReload",{bindings:{reload:"&"},controllerAs:"ClientReloadController",templateUrl:"hotel/client/client-reload/client-reload.html"}),angular.module("client.close.expander",["client.close.expand","events"]).directive("habboClientCloseExpander",["$timeout","EVENTS",function(e,t){return{restrict:"A",link:function(r,n){function o(){c(),s=e(a,l)}function a(){e(function(){r.$broadcast("expander-shrink")})}function i(){e.cancel(s),e(function(){r.$broadcast("expander-expand")})}var s,l=3e4,c=r.$on(t.clientOpen,o);n.mouseenter(i),n.mouseleave(a)}}}]),angular.module("client.close.expand",["ngAnimate"]).directive("habboClientCloseExpand",["$animate",function(e){return{restrict:"A",link:function(t,r){function n(){a(),i(c,0)}function o(){a(),i(l,c)}function a(){c||(c=r.width())}function i(t,n){s&&e.cancel(s),l=n,s=e.animate(r,{width:t},{width:n})}var s,l,c;t.$on("expander-expand",o),t.$on("expander-shrink",n)}}}]),angular.module("local.register.banner",["config","language","locale","templates"]).component("habboLocalRegisterBanner",{controller:["CONFIG","language",function(e,t){var r=this,n=t.toSite();n&&n.hotel!==e.hotel&&(r.site=n)}],controllerAs:"LocalRegisterBannerController",templateUrl:"home/register-banner/local-register-banner/local-register-banner.html"}),angular.module("language",[]).factory("language",["$window",function(e){var t={};return t.toSite=function(){var t=e.navigator.language?e.navigator.language.substr(0,2):null;switch(t){case"de":return{hotel:"hhde",href:"https://www.habbo.de",localization:"DE",title:"Habbo.de"};case"en":return{hotel:"hhus",href:"https://www.habbo.com",localization:"EN",title:"Habbo.com"};case"es":return{hotel:"hhes",href:"https://www.habbo.es",localization:"ES",title:"Habbo.es"};case"fr":return{hotel:"hhfr",href:"https://www.habbo.fr",localization:"FR",title:"Habbo.fr"};case"fi":return{hotel:"hhfi",href:"https://www.habbo.fi",localization:"FI",title:"Habbo.fi"};case"it":return{hotel:"hhit",href:"https://www.habbo.it",localization:"IT",title:"Habbo.it"};case"nl":return{hotel:"hhnl",href:"https://www.habbo.nl",localization:"NL",title:"Habbo.nl"};case"pt":return{hotel:"hhbr",href:"https://www.habbo.com.br",localization:"PT",title:"Habbo.com.br"};case"tr":return{hotel:"hhtr",href:"https://www.habbo.com.tr",localization:"TR",title:"Habbo.com.tr"};default:return null}},t}]),angular.module("moderation.notification",["google.analytics","locale","message.container","moderation.service","templates"]).component("habboModerationNotification",{controller:["PhotoModerations","googleAnalytics",function(e,t){var r=this;r.moderations=e.recentModerations(),r.moderations.$promise.then(function(e){e.length>0&&t.trackEvent("Moderation","Notification viewed")})}],controllerAs:"ModerationNotificationController",templateUrl:"home/news/moderation-notification/moderation-notification.html"}),angular.module("moderation.service",["ngResource","config","storage"]).factory("PhotoModerations",["$resource","CONFIG","httpCache",function(e,t,r){return e(t.extraDataUrl+"/private/moderations/recentModerations",null,{recentModerations:{method:"GET",isArray:!0,cache:r.shortCache}})}]),angular.module("discussions",["avatar","empty.results","flash","locale","templates"]).component("habboDiscussions",{bindings:{items:"<"},controller:function(){var e=this;e.getParticipant=function(e){return _.values(e)[0]}},controllerAs:"DiscussionsController",templateUrl:"home/messaging/discussions/discussions.html"}),angular.module("local.storage",[]).factory("localStorage",["$window",function(e){var t={};return t.get=function(t){try{var r=e.localStorage.getItem(t);return r?angular.fromJson(r):null}catch(n){return null}},t.set=function(t,r){try{e.localStorage.setItem(t,angular.toJson(r))}catch(n){}},t}]),angular.module("cache",["angular-cache","config"]).config(["CacheFactoryProvider",function(e){angular.extend(e.defaults,{maxAge:3e5,deleteOnExpire:"aggressive"})}]).factory("httpCache",["CacheFactory",function(e){return{shortCache:e.createCache("shortHttpCache"),longCache:e.createCache("longHttpCache",{maxAge:36e5})}}]),angular.module("user.menu",["encode.uri.component","false.on.outside.click","imager","locale","router","security","templates","zendesk.url"]).component("habboUserMenu",{controller:["$state","Session","notifier","security",function(e,t,r,n){var o=this;o.user=t.user,o.isMyProfileActive=function(){return e.is("profile",{name:t.user.name})},o.isSettingsActive=function(){return e.includes("settings")},o.logout=function(){n.logout()["catch"](function(){r.errorSticky("ERROR_LOGOUT_TITLE","ERROR_LOGOUT_TEXT")})}}],controllerAs:"UserMenuController",templateUrl:"common/header/user-menu/user-menu.html"}),angular.module("navigation",["encode.uri.component","flash","landing.menu","locale","security","templates"]).component("habboNavigation",{bindings:{active:"@"},controllerAs:"NavigationController",templateUrl:"common/header/navigation/navigation.html"}),angular.module("landing.menu",["config","locale","templates"]).component("habboLandingMenu",{controller:["$document","$window",function(e,t){var r=this;r.toggle=!1,r.closeLandingMenu=function(){Boolean(e[0])&&Boolean(e[0].body)&&e[0].body.classList.remove("landing-menu-scrolllock"),r.toggle=!1},r.openLandingMenu=function(){Boolean(e[0])&&Boolean(e[0].body)&&e[0].body.classList.add("landing-menu-scrolllock"),r.toggle=!0},r.currentYear=(new Date).getFullYear()}],controllerAs:"LandingMenuController",templateUrl:"common/header/landing-menu/landing-menu.html"}),angular.module("hotel.button.native",["hotel.button.native.modal","hotel.permissions","locale","security","spinner","templates"]).component("habboHotelNativeButton",{controller:["$q","$rootScope","HasClientPermission","Session","EVENTS","nativeHotelModal","safetyLockModal",function(e,t,r,n,o,a,i){var s=this;s.visible=!1,s.client=r.to("v4").then(function(e){s.visible=e}),s.open=function(){if(s.visible){var t=e.resolve();n.isTrusted()||(t=i.open()),t["finally"](function(){a.open()})}}}],controllerAs:"$ctrl",templateUrl:"common/header/hotel-button-native/hotel-button-native.html"}),angular.module("validators",["email","matches","password.email","password.name","password.pattern","password.strength","remote.data"]),angular.module("two.factor.code",[]).component("habboTwoFactorCode",{bindings:{ngModel:"="},controllerAs:"$ctrl",templateUrl:"common/form/twofactor-code/twofactor-code.html",controller:["$timeout",function(e){this.inputs=Array(6).fill(""),this.onKeyup=function(t,r){var n=r.target,o=n.value;o.length>1&&(o=o[0],r.preventDefault()),this.inputs[t]=o,this.ngModel=this.inputs.join(""),e(function(){o&&t<5&&n.nextElementSibling.focus()})},this.onKeydown=function(t,r){var n=r.target;"Backspace"!==r.key||this.inputs[t]||(t>0&&(this.inputs[t-1]="",this.ngModel=this.inputs.join(""),e(function(){n.previousElementSibling.focus()})),r.preventDefault())},this.onPaste=function(t){var r=t.originalEvent.clipboardData.getData("text/plain"),n=r.split("").slice(0,6);this.inputs=Array(6).fill("");for(var o=0;o",{"class":"password-toggle-mask__icon",click:n,mousedown:function(e){e.preventDefault()}}))}}}),angular.module("password.new",["ngMessages","locale","password.strength","password.toggle.mask","templates","validators"]).component("habboPasswordNew",{require:{FormController:"^form"},bindings:{isNew:"@",passwordNew:"=",passwordNewRepeated:"=",userName:"@",userEmail:"@"},controllerAs:"PasswordNewController",templateUrl:"common/form/password-new/password-new.html"}),angular.module("password.current",["ngMessages","locale","templates","validators"]).component("habboPasswordCurrent",{require:{FormController:"^form"},bindings:{passwordCurrent:"="},controllerAs:"PasswordCurrentController",templateUrl:"common/form/password-current/password-current.html"}),angular.module("email.address",["ngMessages","locale","templates","validators"]).component("habboEmailAddress",{require:{FormController:"^form"},bindings:{emailAddress:"="},controllerAs:"EmailAddressController",templateUrl:"common/form/email-address/email-address.html",transclude:!0}),angular.module("captcha.config",["ngResource","config","storage"]).factory("CaptchaConfig",["$resource","CONFIG",function(e,t){return e(t.apiUrl+"/public/authentication/captcha",null,{get:{method:"GET",params:{action:"@action"}}})}]),angular.module("captcha",["captcha.config","config","hCAPTCHA","locale","noCAPTCHA","templates"]).constant("CAPTCHA_EVENTS",{reset:"captcha-reset"}).component("habboCaptcha",{require:{FormController:"^form"},bindings:{captchaToken:"="},controller:["$q","$scope","CAPTCHA_EVENTS","CaptchaConfig","hCaptchaService",function(e,t,r,n,o){var a=this;a.noCaptchaController={},a.isRecaptcha=!1,a.isHcaptcha=!1,a.onExpire=function(){a.captchaToken=null},t.widgetId=e.defer(),t.setWidgetId=function(e){t.widgetId.resolve(e)},t.$on(r.reset,function(){a.noCaptchaController.reset&&a.noCaptchaController.reset(),a.isHcaptcha&&t.widgetId.promise.then(o.reset),a.FormController.captchaToken.$setViewValue(null)});var i=n.get();i.$promise.then(function(e){a.config=e,"hcaptcha"===e.provider?a.isHcaptcha=!0:"recaptcha"===e.provider&&(a.isRecaptcha=!0)})}],controllerAs:"CaptchaController",templateUrl:"common/form/captcha/captcha.html"}),angular.module("columns.profile",["card","infinite-scroll","templates"]).component("habboColumnsProfile",{bindings:{items:"<"},controllerAs:"ColumnsProfileController",templateUrl:"common/columns/columns-profile/columns-profile.html"}),angular.module("columns.channel",["avatar","card","infinite-scroll","templates"]).component("habboColumnsChannel",{bindings:{items:"<"},controllerAs:"ColumnsChannelController",templateUrl:"common/columns/columns-channel/columns-channel.html"}),angular.module("card",["creation.href","like","locale","templates"]).component("habboCard",{bindings:{item:"<"},controllerAs:"CardController",templateUrl:"common/columns/card/card.html",transclude:!0}),function(e,t){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,e.ethers=t())}(void 0,function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function t(e,t,n){return n={path:t,exports:{},require:function(e,t){return r(e,void 0===t||null===t?n.path:t)}},e(n,n.exports),n.exports}function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){this.type=e,this.p=new Fe(t.p,16),this.red=t.prime?Fe.red(t.prime):Fe.mont(this.p),this.zero=new Fe(0).toRed(this.red),this.one=new Fe(1).toRed(this.red),this.two=new Fe(2).toRed(this.red),this.n=t.n&&new Fe(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function a(e,t){this.curve=e,this.type=t,this.precomputed=null}function i(e){xt.call(this,"short",e),this.a=new Fe(e.a,16).toRed(this.red),this.b=new Fe(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function s(e,t,r,n){xt.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new Fe(t,16),this.y=new Fe(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){xt.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Fe(0)):(this.x=new Fe(t,16),this.y=new Fe(r,16),this.z=new Fe(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}function c(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function u(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!==0&&(e="0"+e),o=0;o>6|192,r[n++]=63&a|128):c(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(o=0;o>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24;return t>>>0}function h(e,t){for(var r="",n=0;n>>0}return a}function b(e,t){for(var r=new Array(4*e.length),n=0,o=0;n>>24,r[o+1]=a>>>16&255,r[o+2]=a>>>8&255,r[o+3]=255&a):(r[o+3]=a>>>24,r[o+2]=a>>>16&255,r[o+1]=a>>>8&255,r[o]=255&a)}return r}function v(e,t){return e>>>t|e<<32-t}function y(e,t){return e<>>32-t}function _(e,t){return e+t>>>0}function C(e,t,r){return e+t+r>>>0}function A(e,t,r,n){return e+t+r+n>>>0}function E(e,t,r,n,o){return e+t+r+n+o>>>0}function T(e,t,r,n){var o=e[t],a=e[t+1],i=n+a>>>0,s=(i>>0,e[t+1]=i}function w(e,t,r,n){var o=t+n>>>0,a=(o>>0}function S(e,t,r,n){var o=t+n;return o>>>0}function P(e,t,r,n,o,a,i,s){var l=0,c=t;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}function O(e,t,r,n,o,a,i,s){var l=t+n+a+s;return l>>>0}function R(e,t,r,n,o,a,i,s,l,c){var u=0,f=t;f=f+n>>>0,u+=f>>0,u+=f>>0,u+=f>>0,u+=f>>0}function I(e,t,r,n,o,a,i,s,l,c){var u=t+n+a+s+c;return u>>>0}function k(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}function F(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}function M(e,t,r){return e>>>r}function L(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}function N(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}function D(e,t,r,n){return 0===e?x(t,r,n):1===e||3===e?U(t,r,n):2===e?B(t,r,n):void 0}function x(e,t,r){return e&t^~e&r}function B(e,t,r){return e&t^e&r^t&r}function U(e,t,r){return e^t^r}function H(e){return br(e,2)^br(e,13)^br(e,22)}function J(e){return br(e,6)^br(e,11)^br(e,25)}function j(e){return br(e,7)^br(e,18)^e>>>3}function G(e){return br(e,17)^br(e,19)^e>>>10}function V(){return this instanceof V?(kr.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],void(this.W=new Array(80))):new V}function X(){return this instanceof X?(Gr.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Vr,void(this.W=new Array(64))):new X}function $(){return this instanceof $?(Xr.call(this),void(this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])):new $}function z(){return this instanceof z?(on.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=an,void(this.W=new Array(160))):new z}function q(e,t,r,n,o){var a=e&r^~e&o;return a<0&&(a+=4294967296),a}function K(e,t,r,n,o,a){var i=t&n^~t&a;return i<0&&(i+=4294967296),i}function Z(e,t,r,n,o){var a=e&r^e&o^r&o;return a<0&&(a+=4294967296),a}function W(e,t,r,n,o,a){var i=t&n^t&a^n&a;return i<0&&(i+=4294967296),i}function Q(e,t){var r=zr(e,t,28),n=zr(t,e,2),o=zr(t,e,7),a=r^n^o;return a<0&&(a+=4294967296),a}function Y(e,t){var r=qr(e,t,28),n=qr(t,e,2),o=qr(t,e,7),a=r^n^o;return a<0&&(a+=4294967296),a}function ee(e,t){var r=zr(e,t,14),n=zr(e,t,18),o=zr(t,e,9),a=r^n^o;return a<0&&(a+=4294967296),a}function te(e,t){var r=qr(e,t,14),n=qr(e,t,18),o=qr(t,e,9),a=r^n^o;return a<0&&(a+=4294967296),a}function re(e,t){var r=zr(e,t,1),n=zr(e,t,8),o=Kr(e,t,7),a=r^n^o;return a<0&&(a+=4294967296),a}function ne(e,t){var r=qr(e,t,1),n=qr(e,t,8),o=Zr(e,t,7),a=r^n^o;return a<0&&(a+=4294967296),a}function oe(e,t){var r=zr(e,t,19),n=zr(t,e,29),o=Kr(e,t,6),a=r^n^o;return a<0&&(a+=4294967296),a}function ae(e,t){var r=qr(e,t,19),n=qr(t,e,29),o=Zr(e,t,6),a=r^n^o;return a<0&&(a+=4294967296),a}function ie(){return this instanceof ie?(sn.call(this),void(this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428])):new ie}function se(){return this instanceof se?(yn.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],void(this.endian="little")):new se}function le(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function ce(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function ue(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}function fe(e,t,r){return this instanceof fe?(this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,void this._init(pr.toArray(t,r))):new fe(e,t,r)}function de(e){if(!(this instanceof de))return new de(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=Ft.toArray(e.entropy,e.entropyEnc||"hex"),r=Ft.toArray(e.nonce,e.nonceEnc||"hex"),n=Ft.toArray(e.pers,e.persEnc||"hex");kt(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}function he(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}function pe(e,t){return e instanceof pe?e:void(this._importDER(e,t)||(Fn(e.r&&e.s,"Signature without r or s"),this.r=new Fe(e.r,16),this.s=new Fe(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam))}function me(){this.place=0}function ge(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var o=0,a=0,i=t.place;a>>=0;return!(o<=127)&&(t.place=i,o)}function be(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}function ye(e){return this instanceof ye?("string"==typeof e&&(Nn(Object.prototype.hasOwnProperty.call(On,e),"Unknown curve "+e),e=On[e]),e instanceof On.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),void(this.hash=e.hash||e.curve.hash)):new ye(e)}function _e(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function Ce(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=_e(t)^n>>5}for(t=_e(t),r=0;rr)throw new TypeError("Exceeds length limit");e=e.toLowerCase();var n=Ce(e);if("string"==typeof n)throw new Error(n);for(var o=e+"1",a=0;a>5!==0)throw new Error("Non 5-bit word");n=_e(n)^i,o+=Lo.charAt(i)}for(a=0;a<6;++a)n=_e(n);for(n^=1,a=0;a<6;++a){var s=n>>5*(5-a)&31;o+=Lo.charAt(s)}return o}function Ee(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;e=r;var o=e.lastIndexOf("1");if(o===-1)return"No separator character for "+e;if(0===o)return"Missing prefix for "+e;var a=e.slice(0,o),i=e.slice(o+1);if(i.length<6)return"Data too short";var s=Ce(a);if("string"==typeof s)return s;for(var l=[],c=0;c=i.length||l.push(f)}return 1!==s?"Invalid checksum for "+e:{prefix:a,words:l}}function Te(){var e=Ee.apply(null,arguments);if("object"===_typeof(e))return e}function we(e){var t=Ee.apply(null,arguments);if("object"===_typeof(t))return t;throw new Error(t)}function Se(e,t,r,n){for(var o=0,a=0,i=(1<=r;)a-=r,s.push(o>>a&i);if(n)a>0&&s.push(o<=t)return"Excess padding";if(o<=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function i(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function s(e,t,r,n){for(var o=0,a=Math.min(e.length,r),i=t;i=49?s-49+10:s>=17?s-17+10:s}return o}function l(e){for(var t=new Array(e.bitLength()),r=0;r>>o}return t}function c(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],a=0|t.words[0],i=o*a,s=67108863&i,l=i/67108864|0;r.words[0]=s;for(var c=1;c>>26,f=67108863&l,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;o=0|e.words[p],a=0|t.words[h],i=o*a+f,u+=i/67108864|0,f=67108863&i}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}function u(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,a=0;a>>26)|0,o+=i>>>26,i&=67108863}r.words[a]=s,n=i,i=o}return 0!==n?r.words[a]=n:r.length--,r.strip()}function f(e,t,r){var n=new d;return n.mulp(e,t,r)}function d(e,t){this.x=e,this.y=t}function h(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){h.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){h.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){h.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){h.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function y(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26), this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"===_typeof(e)?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var _;try{_="undefined"!=typeof window&&"undefined"!=typeof window.Buffer?window.Buffer:null.Buffer}catch(C){}o.isBN=function(e){return e instanceof o||null!==e&&"object"===_typeof(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"===_typeof(e))return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var o=0;"-"===e[0]&&(o++,this.negative=1),o=0;o-=3)i=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[a]|=i<>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);else if("le"===n)for(o=0,a=0;o>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)o=i(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=o>>>26):a+=8;else{var l=e.length-t;for(n=l%2===0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=o>>>26):a+=8}this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=t)n++;n--,o=o/t|0;for(var a=e.length-r,i=a%n,l=Math.min(a,a-i)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){e=e||10,t=0|t||1;var n;if(16===e||"hex"===e){n="";for(var o=0,a=0,i=0;i>>24-o&16777215,n=0!==a||i!==this.length-1?A[6-l.length]+l+n:l+n,o+=2,o>=26&&(o-=26,i--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=E[e],u=T[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var d=f.modn(u).toString(e);f=f.idivn(u),n=f.isZero()?d+n:A[c-d.length]+d+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!=typeof _),this.toArrayLike(_,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var o=this.byteLength(),a=n||Math.max(1,o);r(o<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var i,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)i=u.andln(255),u.iushrn(8),c[s]=i;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>>26;for(;0!==o&&a>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,o;r>0?(n=this,o=e):(n=e,o=this);for(var a=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==a&&i>26,this.words[i]=67108863&t;if(0===a&&i>>13,h=0|i[1],p=8191&h,m=h>>>13,g=0|i[2],b=8191&g,v=g>>>13,y=0|i[3],_=8191&y,C=y>>>13,A=0|i[4],E=8191&A,T=A>>>13,w=0|i[5],S=8191&w,P=w>>>13,O=0|i[6],R=8191&O,I=O>>>13,k=0|i[7],F=8191&k,M=k>>>13,L=0|i[8],N=8191&L,D=L>>>13,x=0|i[9],B=8191&x,U=x>>>13,H=0|s[0],J=8191&H,j=H>>>13,G=0|s[1],V=8191&G,X=G>>>13,$=0|s[2],z=8191&$,q=$>>>13,K=0|s[3],Z=8191&K,W=K>>>13,Q=0|s[4],Y=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,oe=0|s[6],ae=8191&oe,ie=oe>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,J),o=Math.imul(f,j),o=o+Math.imul(d,J)|0,a=Math.imul(d,j);var ge=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,J),o=Math.imul(p,j),o=o+Math.imul(m,J)|0,a=Math.imul(m,j),n=n+Math.imul(f,V)|0,o=o+Math.imul(f,X)|0,o=o+Math.imul(d,V)|0,a=a+Math.imul(d,X)|0;var be=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,J),o=Math.imul(b,j),o=o+Math.imul(v,J)|0,a=Math.imul(v,j),n=n+Math.imul(p,V)|0,o=o+Math.imul(p,X)|0,o=o+Math.imul(m,V)|0,a=a+Math.imul(m,X)|0,n=n+Math.imul(f,z)|0,o=o+Math.imul(f,q)|0,o=o+Math.imul(d,z)|0,a=a+Math.imul(d,q)|0;var ve=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(_,J),o=Math.imul(_,j),o=o+Math.imul(C,J)|0,a=Math.imul(C,j),n=n+Math.imul(b,V)|0,o=o+Math.imul(b,X)|0,o=o+Math.imul(v,V)|0,a=a+Math.imul(v,X)|0,n=n+Math.imul(p,z)|0,o=o+Math.imul(p,q)|0,o=o+Math.imul(m,z)|0,a=a+Math.imul(m,q)|0,n=n+Math.imul(f,Z)|0,o=o+Math.imul(f,W)|0,o=o+Math.imul(d,Z)|0,a=a+Math.imul(d,W)|0;var ye=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(E,J),o=Math.imul(E,j),o=o+Math.imul(T,J)|0,a=Math.imul(T,j),n=n+Math.imul(_,V)|0,o=o+Math.imul(_,X)|0,o=o+Math.imul(C,V)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(b,z)|0,o=o+Math.imul(b,q)|0,o=o+Math.imul(v,z)|0,a=a+Math.imul(v,q)|0,n=n+Math.imul(p,Z)|0,o=o+Math.imul(p,W)|0,o=o+Math.imul(m,Z)|0,a=a+Math.imul(m,W)|0,n=n+Math.imul(f,Y)|0,o=o+Math.imul(f,ee)|0,o=o+Math.imul(d,Y)|0,a=a+Math.imul(d,ee)|0;var _e=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(S,J),o=Math.imul(S,j),o=o+Math.imul(P,J)|0,a=Math.imul(P,j),n=n+Math.imul(E,V)|0,o=o+Math.imul(E,X)|0,o=o+Math.imul(T,V)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(_,z)|0,o=o+Math.imul(_,q)|0,o=o+Math.imul(C,z)|0,a=a+Math.imul(C,q)|0,n=n+Math.imul(b,Z)|0,o=o+Math.imul(b,W)|0,o=o+Math.imul(v,Z)|0,a=a+Math.imul(v,W)|0,n=n+Math.imul(p,Y)|0,o=o+Math.imul(p,ee)|0,o=o+Math.imul(m,Y)|0,a=a+Math.imul(m,ee)|0,n=n+Math.imul(f,re)|0,o=o+Math.imul(f,ne)|0,o=o+Math.imul(d,re)|0,a=a+Math.imul(d,ne)|0;var Ce=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(R,J),o=Math.imul(R,j),o=o+Math.imul(I,J)|0,a=Math.imul(I,j),n=n+Math.imul(S,V)|0,o=o+Math.imul(S,X)|0,o=o+Math.imul(P,V)|0,a=a+Math.imul(P,X)|0,n=n+Math.imul(E,z)|0,o=o+Math.imul(E,q)|0,o=o+Math.imul(T,z)|0,a=a+Math.imul(T,q)|0,n=n+Math.imul(_,Z)|0,o=o+Math.imul(_,W)|0,o=o+Math.imul(C,Z)|0,a=a+Math.imul(C,W)|0,n=n+Math.imul(b,Y)|0,o=o+Math.imul(b,ee)|0,o=o+Math.imul(v,Y)|0,a=a+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,o=o+Math.imul(p,ne)|0,o=o+Math.imul(m,re)|0,a=a+Math.imul(m,ne)|0,n=n+Math.imul(f,ae)|0,o=o+Math.imul(f,ie)|0,o=o+Math.imul(d,ae)|0,a=a+Math.imul(d,ie)|0;var Ae=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,J),o=Math.imul(F,j),o=o+Math.imul(M,J)|0,a=Math.imul(M,j),n=n+Math.imul(R,V)|0,o=o+Math.imul(R,X)|0,o=o+Math.imul(I,V)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(S,z)|0,o=o+Math.imul(S,q)|0,o=o+Math.imul(P,z)|0,a=a+Math.imul(P,q)|0,n=n+Math.imul(E,Z)|0,o=o+Math.imul(E,W)|0,o=o+Math.imul(T,Z)|0,a=a+Math.imul(T,W)|0,n=n+Math.imul(_,Y)|0,o=o+Math.imul(_,ee)|0,o=o+Math.imul(C,Y)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,o=o+Math.imul(v,re)|0,a=a+Math.imul(v,ne)|0,n=n+Math.imul(p,ae)|0,o=o+Math.imul(p,ie)|0,o=o+Math.imul(m,ae)|0,a=a+Math.imul(m,ie)|0,n=n+Math.imul(f,le)|0,o=o+Math.imul(f,ce)|0,o=o+Math.imul(d,le)|0,a=a+Math.imul(d,ce)|0;var Ee=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,J),o=Math.imul(N,j),o=o+Math.imul(D,J)|0,a=Math.imul(D,j),n=n+Math.imul(F,V)|0,o=o+Math.imul(F,X)|0,o=o+Math.imul(M,V)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(R,z)|0,o=o+Math.imul(R,q)|0,o=o+Math.imul(I,z)|0,a=a+Math.imul(I,q)|0,n=n+Math.imul(S,Z)|0,o=o+Math.imul(S,W)|0,o=o+Math.imul(P,Z)|0,a=a+Math.imul(P,W)|0,n=n+Math.imul(E,Y)|0,o=o+Math.imul(E,ee)|0,o=o+Math.imul(T,Y)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,o=o+Math.imul(C,re)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,o=o+Math.imul(b,ie)|0,o=o+Math.imul(v,ae)|0,a=a+Math.imul(v,ie)|0,n=n+Math.imul(p,le)|0,o=o+Math.imul(p,ce)|0,o=o+Math.imul(m,le)|0,a=a+Math.imul(m,ce)|0,n=n+Math.imul(f,fe)|0,o=o+Math.imul(f,de)|0,o=o+Math.imul(d,fe)|0,a=a+Math.imul(d,de)|0;var Te=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,J),o=Math.imul(B,j),o=o+Math.imul(U,J)|0,a=Math.imul(U,j),n=n+Math.imul(N,V)|0,o=o+Math.imul(N,X)|0,o=o+Math.imul(D,V)|0,a=a+Math.imul(D,X)|0,n=n+Math.imul(F,z)|0,o=o+Math.imul(F,q)|0,o=o+Math.imul(M,z)|0,a=a+Math.imul(M,q)|0,n=n+Math.imul(R,Z)|0,o=o+Math.imul(R,W)|0,o=o+Math.imul(I,Z)|0,a=a+Math.imul(I,W)|0,n=n+Math.imul(S,Y)|0,o=o+Math.imul(S,ee)|0,o=o+Math.imul(P,Y)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,o=o+Math.imul(T,re)|0,a=a+Math.imul(T,ne)|0,n=n+Math.imul(_,ae)|0,o=o+Math.imul(_,ie)|0,o=o+Math.imul(C,ae)|0,a=a+Math.imul(C,ie)|0,n=n+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0,o=o+Math.imul(v,le)|0,a=a+Math.imul(v,ce)|0,n=n+Math.imul(p,fe)|0,o=o+Math.imul(p,de)|0,o=o+Math.imul(m,fe)|0,a=a+Math.imul(m,de)|0,n=n+Math.imul(f,pe)|0,o=o+Math.imul(f,me)|0,o=o+Math.imul(d,pe)|0,a=a+Math.imul(d,me)|0;var we=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(B,V),o=Math.imul(B,X),o=o+Math.imul(U,V)|0,a=Math.imul(U,X),n=n+Math.imul(N,z)|0,o=o+Math.imul(N,q)|0,o=o+Math.imul(D,z)|0,a=a+Math.imul(D,q)|0,n=n+Math.imul(F,Z)|0,o=o+Math.imul(F,W)|0,o=o+Math.imul(M,Z)|0,a=a+Math.imul(M,W)|0,n=n+Math.imul(R,Y)|0,o=o+Math.imul(R,ee)|0,o=o+Math.imul(I,Y)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(S,re)|0,o=o+Math.imul(S,ne)|0,o=o+Math.imul(P,re)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(E,ae)|0,o=o+Math.imul(E,ie)|0,o=o+Math.imul(T,ae)|0,a=a+Math.imul(T,ie)|0,n=n+Math.imul(_,le)|0,o=o+Math.imul(_,ce)|0,o=o+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(b,fe)|0,o=o+Math.imul(b,de)|0,o=o+Math.imul(v,fe)|0,a=a+Math.imul(v,de)|0,n=n+Math.imul(p,pe)|0,o=o+Math.imul(p,me)|0,o=o+Math.imul(m,pe)|0,a=a+Math.imul(m,me)|0;var Se=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,z),o=Math.imul(B,q),o=o+Math.imul(U,z)|0,a=Math.imul(U,q),n=n+Math.imul(N,Z)|0,o=o+Math.imul(N,W)|0,o=o+Math.imul(D,Z)|0,a=a+Math.imul(D,W)|0,n=n+Math.imul(F,Y)|0,o=o+Math.imul(F,ee)|0,o=o+Math.imul(M,Y)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,o=o+Math.imul(I,re)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(S,ae)|0,o=o+Math.imul(S,ie)|0,o=o+Math.imul(P,ae)|0,a=a+Math.imul(P,ie)|0,n=n+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,o=o+Math.imul(T,le)|0,a=a+Math.imul(T,ce)|0,n=n+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0,o=o+Math.imul(C,fe)|0,a=a+Math.imul(C,de)|0,n=n+Math.imul(b,pe)|0,o=o+Math.imul(b,me)|0,o=o+Math.imul(v,pe)|0,a=a+Math.imul(v,me)|0;var Pe=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,Z),o=Math.imul(B,W),o=o+Math.imul(U,Z)|0,a=Math.imul(U,W),n=n+Math.imul(N,Y)|0,o=o+Math.imul(N,ee)|0,o=o+Math.imul(D,Y)|0,a=a+Math.imul(D,ee)|0,n=n+Math.imul(F,re)|0,o=o+Math.imul(F,ne)|0,o=o+Math.imul(M,re)|0,a=a+Math.imul(M,ne)|0,n=n+Math.imul(R,ae)|0,o=o+Math.imul(R,ie)|0,o=o+Math.imul(I,ae)|0,a=a+Math.imul(I,ie)|0,n=n+Math.imul(S,le)|0,o=o+Math.imul(S,ce)|0,o=o+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(E,fe)|0,o=o+Math.imul(E,de)|0,o=o+Math.imul(T,fe)|0,a=a+Math.imul(T,de)|0,n=n+Math.imul(_,pe)|0,o=o+Math.imul(_,me)|0,o=o+Math.imul(C,pe)|0,a=a+Math.imul(C,me)|0;var Oe=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,Y),o=Math.imul(B,ee),o=o+Math.imul(U,Y)|0,a=Math.imul(U,ee),n=n+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,o=o+Math.imul(D,re)|0,a=a+Math.imul(D,ne)|0,n=n+Math.imul(F,ae)|0,o=o+Math.imul(F,ie)|0,o=o+Math.imul(M,ae)|0,a=a+Math.imul(M,ie)|0,n=n+Math.imul(R,le)|0,o=o+Math.imul(R,ce)|0,o=o+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,n=n+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0,o=o+Math.imul(P,fe)|0,a=a+Math.imul(P,de)|0,n=n+Math.imul(E,pe)|0,o=o+Math.imul(E,me)|0,o=o+Math.imul(T,pe)|0,a=a+Math.imul(T,me)|0;var Re=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,re),o=Math.imul(B,ne),o=o+Math.imul(U,re)|0,a=Math.imul(U,ne),n=n+Math.imul(N,ae)|0,o=o+Math.imul(N,ie)|0,o=o+Math.imul(D,ae)|0,a=a+Math.imul(D,ie)|0,n=n+Math.imul(F,le)|0,o=o+Math.imul(F,ce)|0,o=o+Math.imul(M,le)|0,a=a+Math.imul(M,ce)|0,n=n+Math.imul(R,fe)|0,o=o+Math.imul(R,de)|0,o=o+Math.imul(I,fe)|0,a=a+Math.imul(I,de)|0,n=n+Math.imul(S,pe)|0,o=o+Math.imul(S,me)|0,o=o+Math.imul(P,pe)|0,a=a+Math.imul(P,me)|0;var Ie=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(B,ae),o=Math.imul(B,ie),o=o+Math.imul(U,ae)|0,a=Math.imul(U,ie),n=n+Math.imul(N,le)|0,o=o+Math.imul(N,ce)|0,o=o+Math.imul(D,le)|0,a=a+Math.imul(D,ce)|0,n=n+Math.imul(F,fe)|0,o=o+Math.imul(F,de)|0,o=o+Math.imul(M,fe)|0,a=a+Math.imul(M,de)|0,n=n+Math.imul(R,pe)|0,o=o+Math.imul(R,me)|0,o=o+Math.imul(I,pe)|0,a=a+Math.imul(I,me)|0;var ke=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,le),o=Math.imul(B,ce),o=o+Math.imul(U,le)|0,a=Math.imul(U,ce),n=n+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0,o=o+Math.imul(D,fe)|0,a=a+Math.imul(D,de)|0,n=n+Math.imul(F,pe)|0,o=o+Math.imul(F,me)|0,o=o+Math.imul(M,pe)|0,a=a+Math.imul(M,me)|0;var Fe=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,n=Math.imul(B,fe),o=Math.imul(B,de),o=o+Math.imul(U,fe)|0,a=Math.imul(U,de),n=n+Math.imul(N,pe)|0,o=o+Math.imul(N,me)|0,o=o+Math.imul(D,pe)|0,a=a+Math.imul(D,me)|0;var Me=(c+n|0)+((8191&o)<<13)|0;c=(a+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,pe),o=Math.imul(B,me),o=o+Math.imul(U,pe)|0,a=Math.imul(U,me);var Le=(c+n|0)+((8191&o)<<13)|0;return c=(a+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,l[0]=ge,l[1]=be,l[2]=ve,l[3]=ye,l[4]=_e,l[5]=Ce,l[6]=Ae,l[7]=Ee,l[8]=Te,l[9]=we,l[10]=Se,l[11]=Pe,l[12]=Oe,l[13]=Re,l[14]=Ie,l[15]=ke,l[16]=Fe,l[17]=Me,l[18]=Le,0!==c&&(l[19]=c,r.length++),r};Math.imul||(w=c),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?w(this,e,t):n<63?c(this,e,t):n<1024?u(this,e,t):f(this,e,t)},d.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},d.prototype.permute=function(e,t,r,n,o,a){for(var i=0;i>>=1)o++;return 1<>>=13,n[2*i+1]=8191&a,a>>>=13;for(i=2*t;i>=26,t+=o/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=l(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,n=e%26,o=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var i=0;for(t=0;t>>26-n}i&&(this.words[t]=i,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t=0);var o;o=t?(t-t%26)/26:0;var a=e%26,i=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<i)for(this.length-=i,c=0;c=0&&(0!==u||c>=o);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[o+n]=67108863&i}for(;o>26,this.words[o+n]=67108863&i;if(0===s)return this.strip();for(r(s===-1),s=0,o=0;o>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=this.length-e.length,n=this.clone(),a=e,i=0|a.words[a.length-1],s=this._countBits(i);r=26-s,0!==r&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var l,c=n.length-a.length;if("mod"!==t){l=new o(null),l.length=c+1,l.words=new Array(l.length);for(var u=0;u=0;d--){var h=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(h=Math.min(h/i|0,67108863),n._ishlnsubmul(a,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=h)}return l&&l.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:l||null,mod:n}},o.prototype.divmod=function(e,t,n){if(r(!e.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var a,i,s;return 0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:a,mod:i}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:s.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),a=r.cmp(n);return a<0||1===o&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,o=this.length-1;o>=0;o--)n=(t*n+(0|this.words[o]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*t;this.words[n]=o/e|0,t=o%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new o(1),i=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(a.isOdd()||i.isOdd())&&(a.iadd(u),i.isub(f)),a.iushrn(1),i.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),i.isub(l)):(n.isub(t),s.isub(a),l.isub(i))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new o(1),i=new o(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var u=0,f=1;0===(n.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(n.iushrn(u);u-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(i)):(n.isub(t),i.isub(a))}var d;return d=0===t.cmpn(1)?a:i,d.cmpn(0)<0&&d.iadd(e),d},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var a=t;t=r,r=a}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<>>26,s&=67108863,this.words[i]=s}return 0!==a&&(this.words[i]=a,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),r(e<=67108863,"Number is too big");var o=0|this.words[0];n=o===e?0:oe.length)return 1;if(this.length=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){no&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return this.cmpn(e)===-1},o.prototype.lt=function(e){return this.cmp(e)===-1},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new v(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var S={k256:null,p224:null,p192:null,p25519:null};h.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},h.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),t=r.bitLength();while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},h.prototype.split=function(e,t){e.iushrn(this.n,0,t)},h.prototype.imulK=function(e){return e.imul(this.k)},n(p,h),p.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),o=0;o>>22,a=i}a>>>=22,e.words[o-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},p.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function P(e){if(S[e])return S[e];var P;if("k256"===e)P=new p;else if("p224"===e)P=new m;else if("p192"===e)P=new g;else{if("p25519"!==e)throw new Error("Unknown prime "+e);P=new b}return S[e]=P,P},v.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},v.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),i=0;!a.isZero()&&0===a.andln(1);)i++,a.iushrn(1);r(!a.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,a),d=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),p=i;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;a--){for(var u=t.words[a],f=c-1;f>=0;f--){var d=u>>f&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==s?(s<<=1,s|=d,l++,(l===r||0===a&&0===f)&&(i=this.mul(i,n[s]),l=0,s=0)):l=0}c=26}return i},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new y(e)},n(y,v),y.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},y.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},y.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},y.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},y.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}(e,ke)}),Me=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="logger/5.4.1"}),Le=(e(Me),t(function(e,t){function r(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.ErrorCode=t.LogLevel=void 0;var n,o=!1,a=!1,i={debug:1,"default":2,info:2,warning:3,error:4,off:5},s=i["default"],l=null,c=r();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(n=t.LogLevel||(t.LogLevel={}));var u;!function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(u=t.ErrorCode||(t.ErrorCode={}));var f="0123456789abcdef",d=function(){function e(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return e.prototype._log=function(e,t){var r=e.toLowerCase();null==i[r]&&this.throwArgumentError("invalid log level name","logLevel",e),s>i[r]||console.log.apply(console,t)},e.prototype.debug=function(){for(var t=[],r=0;r>4],r+=f[15&t[a]];o.push(e+"=Uint8Array(0x"+r+")")}else o.push(e+"="+JSON.stringify(t))}catch(i){o.push(e+"="+JSON.stringify(n[e].toString()))}}),o.push("code="+r),o.push("version="+this.version);var i=t;o.length&&(t+=" ("+o.join(", ")+")");var s=new Error(t);return s.reason=i,s.code=r,Object.keys(n).forEach(function(e){s[e]=n[e]}),s},e.prototype.throwError=function(e,t,r){throw this.makeError(e,t,r)},e.prototype.throwArgumentError=function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})},e.prototype.assert=function(e,t,r,n){e||this.throwError(t,r,n)},e.prototype.assertArgument=function(e,t,r,n){e||this.throwArgumentError(t,r,n)},e.prototype.checkNormalize=function(t){null==t&&(t="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})},e.prototype.checkSafeUint53=function(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))},e.prototype.checkArgumentCount=function(t,r,n){n=n?": "+n:"",tr&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})},e.prototype.checkNew=function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})},e.prototype.checkAbstract=function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})},e.globalLogger=function(){return l||(l=new e(Me.version)),l},e.setCensorship=function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}a=!!t,o=!!r},e.setLogLevel=function(t){var r=i[t.toLowerCase()];return null==r?void e.globalLogger().warn("invalid log level - "+t):void(s=r)},e.from=function(t){return new e(t)},e.errors=u,e.levels=n,e}();t.Logger=d})),Ne=(e(Le),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="bytes/5.4.0"})),De=(e(Ne),t(function(e,t){function r(e){return!!e.toHexString}function n(e){return e.slice?e:(e.slice=function(){var t=Array.prototype.slice.call(arguments);return n(new Uint8Array(Array.prototype.slice.apply(e,t)))},e)}function o(e){return u(e)&&!(e.length%2)||a(e)}function a(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(null==e.length)return!1;for(var t=0;t=256||r%1)return!1}return!0}function i(e,t){if(t||(t={}),"number"==typeof e){_.checkSafeUint53(e,"invalid arrayify value");for(var o=[];e;)o.unshift(255&e),e=parseInt(String(e/256));return 0===o.length&&o.push(0),n(new Uint8Array(o))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),r(e)&&(e=e.toHexString()),u(e)){var i=e.substring(2);i.length%2&&("left"===t.hexPad?i="0x0"+i.substring(2):"right"===t.hexPad?i+="0":_.throwArgumentError("hex data is odd-length","value",e));for(var o=[],s=0;st&&_.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),n(r)}function u(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function f(e,t){if(t||(t={}),"number"==typeof e){_.checkSafeUint53(e,"invalid hexlify value");for(var n="";e;)n=C[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if("bigint"==typeof e)return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),r(e))return e.toHexString();if(u(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":_.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(a(e)){for(var o="0x",i=0;i>4]+C[15&s]}return o}return _.throwArgumentError("invalid hexlify value","value",e)}function d(e){if("string"!=typeof e)e=f(e);else if(!u(e)||e.length%2)return null;return(e.length-2)/2}function h(e,t,r){return"string"!=typeof e?e=f(e):(!u(e)||e.length%2)&&_.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function p(e){var t="0x";return e.forEach(function(e){t+=f(e).substring(2)}),t}function m(e){var t=g(f(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function g(e){"string"!=typeof e&&(e=f(e)),u(e)||_.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t2*t+2&&_.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function v(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(o(e)){var r=i(e);65!==r.length&&_.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=f(r.slice(0,32)),t.s=f(r.slice(32,64)),t.v=r[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:_.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=f(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var n=c(i(t._vs),32);t._vs=f(n);var a=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=a:t.recoveryParam!==a&&_.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var s=f(n);null==t.s?t.s=s:t.s!==s&&_.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?_.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&_.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&u(t.r)?t.r=b(t.r,32):_.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&u(t.s)?t.s=b(t.s,32):_.throwArgumentError("signature missing or invalid s","signature",e);var l=i(t.s);l[0]>=128&&_.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(l[0]|=128);var d=f(l);t._vs&&(u(t._vs)||_.throwArgumentError("signature invalid _vs","signature",e),t._vs=b(t._vs,32)),null==t._vs?t._vs=d:t._vs!==d&&_.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}function y(e){return e=v(e),f(s([e.r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}Object.defineProperty(t,"__esModule",{value:!0}),t.joinSignature=t.splitSignature=t.hexZeroPad=t.hexStripZeros=t.hexValue=t.hexConcat=t.hexDataSlice=t.hexDataLength=t.hexlify=t.isHexString=t.zeroPad=t.stripZeros=t.concat=t.arrayify=t.isBytes=t.isBytesLike=void 0;var _=new Le.Logger(Ne.version);t.isBytesLike=o,t.isBytes=a,t.arrayify=i,t.concat=s,t.stripZeros=l,t.zeroPad=c,t.isHexString=u;var C="0123456789abcdef";t.hexlify=f,t.hexDataLength=d,t.hexDataSlice=h,t.hexConcat=p,t.hexValue=m,t.hexStripZeros=g,t.hexZeroPad=b,t.splitSignature=v,t.joinSignature=y})),xe=(e(De),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="bignumber/5.4.2"})),Be=(e(xe),t(function(e,t){function r(e){return null!=e&&(g.isBigNumber(e)||"number"==typeof e&&e%1===0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||De.isHexString(e)||"bigint"==typeof e||De.isBytes(e))}function n(e){if("string"!=typeof e)return n(e.toString(16));if("-"===e[0])return e=e.substring(1),"-"===e[0]&&d.throwArgumentError("invalid hex","value",e),e=n(e),"0x00"===e?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function o(e){return g.from(n(e))}function a(e){var t=g.from(e).toHexString();return"-"===t[0]?new f("-"+t.substring(3),16):new f(t.substring(2),16)}function i(e,t,r){var n={fault:e,operation:t};return null!=r&&(n.value=r),d.throwError(e,Le.Logger.errors.NUMERIC_FAULT,n)}function s(e){return new f(e,36).toString(16)}function l(e){return new f(e,16).toString(36)}var c=ke&&ke.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(t,"__esModule",{value:!0}),t._base16To36=t._base36To16=t.BigNumber=t.isBigNumberish=void 0;var u=c(Fe),f=u["default"].BN,d=new Le.Logger(xe.version),h={},p=9007199254740991;t.isBigNumberish=r;var m=!1,g=function(){function e(t,r){var n=this.constructor;d.checkNew(n,e),t!==h&&d.throwError("cannot call constructor directly; use BigNumber.from",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return e.prototype.fromTwos=function(e){return o(a(this).fromTwos(e))},e.prototype.toTwos=function(e){return o(a(this).toTwos(e))},e.prototype.abs=function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this},e.prototype.add=function(e){return o(a(this).add(a(e)))},e.prototype.sub=function(e){return o(a(this).sub(a(e)))},e.prototype.div=function(t){var r=e.from(t);return r.isZero()&&i("division by zero","div"),o(a(this).div(a(t)))},e.prototype.mul=function(e){return o(a(this).mul(a(e)))},e.prototype.mod=function(e){var t=a(e);return t.isNeg()&&i("cannot modulo negative values","mod"),o(a(this).umod(t))},e.prototype.pow=function(e){var t=a(e);return t.isNeg()&&i("cannot raise to negative values","pow"),o(a(this).pow(t))},e.prototype.and=function(e){var t=a(e);return(this.isNegative()||t.isNeg())&&i("cannot 'and' negative values","and"),o(a(this).and(t))},e.prototype.or=function(e){var t=a(e);return(this.isNegative()||t.isNeg())&&i("cannot 'or' negative values","or"),o(a(this).or(t))},e.prototype.xor=function(e){var t=a(e);return(this.isNegative()||t.isNeg())&&i("cannot 'xor' negative values","xor"),o(a(this).xor(t))},e.prototype.mask=function(e){return(this.isNegative()||e<0)&&i("cannot mask negative values","mask"),o(a(this).maskn(e))},e.prototype.shl=function(e){return(this.isNegative()||e<0)&&i("cannot shift negative values","shl"),o(a(this).shln(e))},e.prototype.shr=function(e){return(this.isNegative()||e<0)&&i("cannot shift negative values","shr"),o(a(this).shrn(e))},e.prototype.eq=function(e){return a(this).eq(a(e))},e.prototype.lt=function(e){return a(this).lt(a(e))},e.prototype.lte=function(e){return a(this).lte(a(e))},e.prototype.gt=function(e){return a(this).gt(a(e))},e.prototype.gte=function(e){return a(this).gte(a(e))},e.prototype.isNegative=function(){return"-"===this._hex[0]},e.prototype.isZero=function(){return a(this).isZero()},e.prototype.toNumber=function(){try{return a(this).toNumber()}catch(e){i("overflow","toNumber",this.toString())}return null},e.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch(e){}return d.throwError("this platform does not support BigInt",Le.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},e.prototype.toString=function(){return arguments.length>0&&(10===arguments[0]?m||(m=!0,d.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?d.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Le.Logger.errors.UNEXPECTED_ARGUMENT,{}):d.throwError("BigNumber.toString does not accept parameters",Le.Logger.errors.UNEXPECTED_ARGUMENT,{})),a(this).toString(10)},e.prototype.toHexString=function(){return this._hex},e.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},e.from=function(t){if(t instanceof e)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(h,n(t)):t.match(/^-?[0-9]+$/)?new e(h,n(new f(t))):d.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&i("underflow","BigNumber.from",t),(t>=p||t<=-p)&&i("overflow","BigNumber.from",t),e.from(String(t));var r=t;if("bigint"==typeof r)return e.from(r.toString());if(De.isBytes(r))return e.from(De.hexlify(r));if(r)if(r.toHexString){var o=r.toHexString();if("string"==typeof o)return e.from(o)}else{var o=r._hex;if(null==o&&"BigNumber"===r.type&&(o=r.hex),"string"==typeof o&&(De.isHexString(o)||"-"===o[0]&&De.isHexString(o.substring(1))))return e.from(o)}return d.throwArgumentError("invalid BigNumber value","value",t)},e.isBigNumber=function(e){return!(!e||!e._isBigNumber)},e}();t.BigNumber=g,t._base36To16=s,t._base16To36=l})),Ue=(e(Be),t(function(e,t){function r(e,t,r,n){var o={fault:t,operation:r};return void 0!==n&&(o.value=n),i.throwError(e,Le.Logger.errors.NUMERIC_FAULT,o)}function n(e){if("number"!=typeof e)try{e=Be.BigNumber.from(e).toNumber()}catch(t){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+u.substring(0,e):i.throwArgumentError("invalid decimal size","decimals",e)}function o(e,t){null==t&&(t=0);var r=n(t);e=Be.BigNumber.from(e);var o=e.lt(l);o&&(e=e.mul(c));for(var a=e.mod(r).toString();a.length2&&i.throwArgumentError("too many decimal points","value",e);var l=s[0],u=s[1];for(l||(l="0"),u||(u="0");"0"===u[u.length-1];)u=u.substring(0,u.length-1);for(u.length>o.length-1&&r("fractional component exceeds decimals","underflow","parseFixed"),""===u&&(u="0");u.length80&&i.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",o),new e(s,r,n,o)},e}();t.FixedFormat=f;var d=function(){function e(t,r,n,o){var a=this.constructor;i.checkNew(a,e),t!==s&&i.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=o,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return e.prototype._checkFormat=function(e){this.format.name!==e.format.name&&i.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},e.prototype.addUnsafe=function(t){this._checkFormat(t);var r=a(this._value,this.format.decimals),n=a(t._value,t.format.decimals);return e.fromValue(r.add(n),this.format.decimals,this.format)},e.prototype.subUnsafe=function(t){this._checkFormat(t);var r=a(this._value,this.format.decimals),n=a(t._value,t.format.decimals);return e.fromValue(r.sub(n),this.format.decimals,this.format)},e.prototype.mulUnsafe=function(t){this._checkFormat(t);var r=a(this._value,this.format.decimals),n=a(t._value,t.format.decimals);return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},e.prototype.divUnsafe=function(t){this._checkFormat(t);var r=a(this._value,this.format.decimals),n=a(t._value,t.format.decimals);return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},e.prototype.floor=function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(h.toFormat(r.format))),r},e.prototype.ceiling=function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(h.toFormat(r.format))),r},e.prototype.round=function(t){null==t&&(t=0);var r=this.toString().split(".");if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&i.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;var n=e.from("1"+u.substring(0,t),this.format),o=p.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(o).floor().divUnsafe(n)},e.prototype.isZero=function(){return"0.0"===this._value||"0"===this._value},e.prototype.isNegative=function(){return"-"===this._value[0]},e.prototype.toString=function(){return this._value},e.prototype.toHexString=function(e){if(null==e)return this._hex;e%8&&i.throwArgumentError("invalid byte width","width",e);var t=Be.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return De.hexZeroPad(t,e/8)},e.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},e.prototype.toFormat=function(t){return e.fromString(this._value,t)},e.fromValue=function(t,r,n){return null!=n||null==r||Be.isBigNumberish(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(o(t,r),f.from(n))},e.fromString=function(t,n){null==n&&(n="fixed");var i=f.from(n),c=a(t,i.decimals);!i.signed&&c.lt(l)&&r("unsigned value cannot be negative","overflow","value",t);var u=null;i.signed?u=c.toTwos(i.width).toHexString():(u=c.toHexString(),u=De.hexZeroPad(u,i.width/8));var d=o(c,i.decimals);return new e(s,u,d,i)},e.fromBytes=function(t,r){null==r&&(r="fixed");var n=f.from(r);if(De.arrayify(t).length>n.width/8)throw new Error("overflow");var a=Be.BigNumber.from(t);n.signed&&(a=a.fromTwos(n.width));var i=a.toTwos((n.signed?0:1)+n.width).toHexString(),l=o(a,n.decimals);return new e(s,i,l,n)},e.from=function(t,r){if("string"==typeof t)return e.fromString(t,r);if(De.isBytes(t))return e.fromBytes(t,r);try{return e.fromValue(t,0,r)}catch(n){if(n.code!==Le.Logger.errors.INVALID_ARGUMENT)throw n}return i.throwArgumentError("invalid FixedNumber value","value",t)},e.isFixedNumber=function(e){return!(!e||!e._isFixedNumber)},e}();t.FixedNumber=d;var h=d.from(1),p=d.from("0.5")})),He=(e(Ue),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._base36To16=t._base16To36=t.parseFixed=t.FixedNumber=t.FixedFormat=t.formatFixed=t.BigNumber=void 0,Object.defineProperty(t,"BigNumber",{enumerable:!0,get:function(){return Be.BigNumber}}),Object.defineProperty(t,"formatFixed",{enumerable:!0,get:function(){return Ue.formatFixed}}),Object.defineProperty(t,"FixedFormat",{enumerable:!0,get:function(){return Ue.FixedFormat}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return Ue.FixedNumber}}),Object.defineProperty(t,"parseFixed",{enumerable:!0,get:function(){return Ue.parseFixed}});var r=Be;Object.defineProperty(t,"_base16To36",{enumerable:!0,get:function(){return r._base16To36}}),Object.defineProperty(t,"_base36To16",{enumerable:!0,get:function(){return r._base36To16}})})),Je=(e(He),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="properties/5.4.1"; })),je=(e(Je),t(function(e,t){function r(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function n(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!==_typeof(e.prototype))break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function o(e){return u(this,void 0,void 0,function(){var t,r;return f(this,function(n){switch(n.label){case 0:return t=Object.keys(e).map(function(t){var r=e[t];return Promise.resolve(r).then(function(e){return{key:t,value:e}})}),[4,Promise.all(t)];case 1:return r=n.sent(),[2,r.reduce(function(e,t){return e[t.key]=t.value,e},{})]}})})}function a(e,t){e&&"object"===_typeof(e)||d.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(function(r){t[r]||d.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function i(e){var t={};for(var r in e)t[r]=e[r];return t}function s(e){if(void 0===e||null===e||h[_typeof(e)])return!0;if(Array.isArray(e)||"object"===_typeof(e)){if(!Object.isFrozen(e))return!1;for(var t=Object.keys(e),r=0;r0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0||"tuple"===e)&&b[t])return!0;return(g[t]||"payable"===t)&&p.throwArgumentError("invalid modifier","name",t),!1}function n(e,t){function n(t){p.throwArgumentError("unexpected character at position "+t,"param",e)}function o(e){var r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}var a=e;e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},s=i,l=0;l2&&p.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||p.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=He.BigNumber.from(r[1]),r[0]):e}function s(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function l(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&p.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&p.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||p.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&p.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&p.throwArgumentError("unable to determine stateMutability","value",e),t}function c(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||p.throwArgumentError("cannot specify user defined "+t+" error","fragment",e),e}function u(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}function f(e){return e&&e.match(w)||p.throwArgumentError('invalid identifier "'+e+'"',"value",e),e}function d(e){e=e.trim();for(var t=[],r="",n=0,o=0;o2&&p.throwArgumentError("invalid function string","value",e);var o=n[0].match(S);if(o||p.throwArgumentError("invalid function signature","value",e),t.name=o[1].trim(),t.name&&f(t.name),t.inputs=a(o[2],!1),s(o[3].trim(),t),n.length>1){var l=n[1].match(S);""==l[1].trim()&&""==l[3].trim()||p.throwArgumentError("unexpected tokens","value",e),t.outputs=a(l[2],!1)}else t.outputs=[];return r.fromObject(t)},r.isFunctionFragment=function(e){return e&&e._isFragment&&"function"===e.type},r}(A);t.FunctionFragment=E;var T=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return h(r,e),r.prototype.format=function(e){if(e||(e=t.FormatTypes.sighash),t.FormatTypes[e]||p.throwArgumentError("invalid format type","format",e),e===t.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(t){return JSON.parse(t.format(e))})});var r="";return e!==t.FormatTypes.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(function(t){return t.format(e)}).join(e===t.FormatTypes.full?", ":",")+") ",r.trim()},r.from=function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)},r.fromObject=function(e){if(r.isErrorFragment(e))return e;"error"!==e.type&&p.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:f(e.name),inputs:e.inputs?e.inputs.map(y.fromObject):[]};return c(new r(m,t))},r.fromString=function(e){var t={type:"error"},n=e.match(S);return n||p.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&f(t.name),t.inputs=a(n[2],!1),c(r.fromObject(t))},r.isErrorFragment=function(e){return e&&e._isFragment&&"error"===e.type},r}(_);t.ErrorFragment=T;var w=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$"),S=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")})),Xe=(e(Ve),t(function(e,t){function r(e){var t=[],r=function n(e,r){if(Array.isArray(r))for(var o in r){var a=e.slice();a.push(o);try{n(a,r[o])}catch(i){t.push({path:a,error:i})}}};return r([],e),t}Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=void 0;var n=new Le.Logger(Ge.version);t.checkResultErrors=r;var o=function(){function e(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}return e.prototype._throwError=function(e,t){n.throwArgumentError(e,this.localName,t)},e}();t.Coder=o;var a=function(){function e(e){je.defineReadOnly(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(e.prototype,"data",{get:function(){return De.hexConcat(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),e.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},e.prototype.appendWriter=function(e){return this._writeData(De.concat(e._data))},e.prototype.writeBytes=function(e){var t=De.arrayify(e),r=t.length%this.wordSize;return r&&(t=De.concat([t,this._padding.slice(r)])),this._writeData(t)},e.prototype._getValue=function(e){var t=De.arrayify(He.BigNumber.from(e));return t.length>this.wordSize&&n.throwError("value out-of-bounds",Le.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=De.concat([this._padding.slice(t.length%this.wordSize),t])),t},e.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},e.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}},e}();t.Writer=a;var i=function(){function e(e,t,r,n){je.defineReadOnly(this,"_data",De.arrayify(e)),je.defineReadOnly(this,"wordSize",t||32),je.defineReadOnly(this,"_coerceFunc",r),je.defineReadOnly(this,"allowLoose",n),this._offset=0}return Object.defineProperty(e.prototype,"data",{get:function(){return De.hexlify(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),e.coerce=function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t},e.prototype.coerce=function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)},e.prototype._peekBytes=function(e,t,r){var o=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+o>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?o=t:n.throwError("data out-of-bounds",Le.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+o})),this._data.slice(this._offset,this._offset+o)},e.prototype.subReader=function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)},e.prototype.readBytes=function(e,t){var r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)},e.prototype.readValue=function(){return He.BigNumber.from(this.readBytes(this.wordSize))},e}();t.Reader=i})),$e=(e(Xe),t(function(e){!function(){function t(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}var r="object"===("undefined"==typeof window?"undefined":_typeof(window))?window:{},n=!r.JS_SHA3_NO_NODE_JS&&"object"===("undefined"==typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;n&&(r=ke);for(var o=!r.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,a="0123456789abcdef".split(""),i=[31,7936,2031616,520093696],s=[1,256,65536,16777216],l=[6,1536,393216,100663296],c=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],h=["hex","buffer","arrayBuffer","array"],p=function(e,r,n){return function(o){return new t(e,r,e).update(o)[n]()}},m=function(e,r,n){return function(o,a){return new t(e,r,a).update(o)[n]()}},g=function(e,r){var n=p(e,r,"hex");n.create=function(){return new t(e,r,e)},n.update=function(e){return n.create().update(e)};for(var o=0;o>2]|=e[l]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[r>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=i){for(this.start=r-i,this.block=a[s],r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+a[15&e]+a[e>>12&15]+a[e>>8&15]+a[e>>20&15]+a[e>>16&15]+a[e>>28&15]+a[e>>24&15];s%t===0&&(S(r),i=0)}return o&&(e=r[i],o>0&&(l+=a[e>>4&15]+a[15&e]),o>1&&(l+=a[e>>12&15]+a[e>>8&15]),o>2&&(l+=a[e>>20&15]+a[e>>16&15])),l},t.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,a=0,i=0,s=this.outputBits>>3;e=o?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var l=new Uint32Array(e);i>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%r===0&&S(n)}return a&&(e=s<<2,t=n[i],a>0&&(l[e]=255&t),a>1&&(l[e+1]=t>>8&255),a>2&&(l[e+2]=t>>16&255)),l};var S=function(e){var t,r,n,o,a,i,s,l,c,f,d,h,p,m,g,b,v,y,_,C,A,E,T,w,S,P,O,R,I,k,F,M,L,N,D,x,B,U,H,J,j,G,V,X,$,z,q,K,Z,W,Q,Y,ee,te,re,ne,oe,ae,ie,se,le,ce,ue;for(n=0;n<48;n+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=h^(i<<1|s>>>31),r=p^(s<<1|i>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=o^(l<<1|c>>>31),r=a^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=i^(f<<1|d>>>31),r=s^(d<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(h<<1|p>>>31),r=c^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(o<<1|a>>>31),r=d^(a<<1|o>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],g=e[1],z=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,R=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,G=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,k=e[33]<<13|e[32]>>>19,F=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,x=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,y=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,W=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,M=e[45]<<29|e[44]>>>3,L=e[44]<<29|e[45]>>>3,w=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,C=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,Y=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,X=e[8]<<27|e[9]>>>5,$=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,O=e[19]<<20|e[18]>>>12,ae=e[29]<<7|e[28]>>>25,ie=e[28]<<7|e[29]>>>25,J=e[38]<<8|e[39]>>>24,j=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,T=e[49]<<14|e[48]>>>18,e[0]=m^~b&y,e[1]=g^~v&_,e[10]=w^~P&R,e[11]=S^~O&I,e[20]=N^~x&U,e[21]=D^~B&H,e[30]=X^~z&K,e[31]=$^~q&Z,e[40]=te^~ne&ae,e[41]=re^~oe&ie,e[2]=b^~y&C,e[3]=v^~_&A,e[12]=P^~R&k,e[13]=O^~I&F,e[22]=x^~U&J,e[23]=B^~H&j,e[32]=z^~K&W,e[33]=q^~Z&Q,e[42]=ne^~ae&se,e[43]=oe^~ie&le,e[4]=y^~C&E,e[5]=_^~A&T,e[14]=R^~k&M,e[15]=I^~F&L,e[24]=U^~J&G,e[25]=H^~j&V,e[34]=K^~W&Y,e[35]=Z^~Q&ee,e[44]=ae^~se&ce,e[45]=ie^~le&ue,e[6]=C^~E&m,e[7]=A^~T&g,e[16]=k^~M&w,e[17]=F^~L&S,e[26]=J^~G&N,e[27]=j^~V&D,e[36]=W^~Y&X,e[37]=Q^~ee&$,e[46]=se^~ce&te,e[47]=le^~ue&re,e[8]=E^~m&b,e[9]=T^~g&v,e[18]=M^~w&P,e[19]=L^~S&O,e[28]=G^~N&x,e[29]=V^~D&B,e[38]=Y^~X&z,e[39]=ee^~$&q,e[48]=ce^~te&ne,e[49]=ue^~re&oe,e[0]^=u[n],e[1]^=u[n+1]};if(o)e.exports=y;else for(var C=0;C<_.length;++C)r[_[C]]=y[_[C]]}()})),ze=t(function(e,t){function r(e){return"0x"+o["default"].keccak_256(De.arrayify(e))}var n=ke&&ke.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;var o=n($e);t.keccak256=r}),qe=(e(ze),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="rlp/5.4.0"})),Ke=(e(qe),t(function(e,t){function r(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function n(e,t,r){for(var n=0,o=0;ot+1+n&&c.throwError("child data too short",Le.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function s(e,t){if(0===e.length&&c.throwError("data too short",Le.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247;t+1+r>e.length&&c.throwError("data short segment too short",Le.Logger.errors.BUFFER_OVERRUN,{});var o=n(e,t+1,r);return t+1+r+o>e.length&&c.throwError("data long segment too short",Le.Logger.errors.BUFFER_OVERRUN,{}),i(e,t,t+1+r,r+o)}if(e[t]>=192){var a=e[t]-192;return t+1+a>e.length&&c.throwError("data array too short",Le.Logger.errors.BUFFER_OVERRUN,{}),i(e,t,t+1,a)}if(e[t]>=184){var r=e[t]-183;t+1+r>e.length&&c.throwError("data array too short",Le.Logger.errors.BUFFER_OVERRUN,{});var s=n(e,t+1,r);t+1+r+s>e.length&&c.throwError("data array too short",Le.Logger.errors.BUFFER_OVERRUN,{});var l=De.hexlify(e.slice(t+1+r,t+1+r+s));return{consumed:1+r+s,result:l}}if(e[t]>=128){var u=e[t]-128;t+1+u>e.length&&c.throwError("data too short",Le.Logger.errors.BUFFER_OVERRUN,{});var l=De.hexlify(e.slice(t+1,t+1+u));return{consumed:1+u,result:l}}return{consumed:1,result:De.hexlify(e[t])}}function l(e){var t=De.arrayify(e),r=s(t,0);return r.consumed!==t.length&&c.throwArgumentError("invalid rlp data","data",e),r.result}Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;var c=new Le.Logger(qe.version);t.encode=a,t.decode=l})),Ze=(e(Ke),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="address/5.4.0"})),We=(e(Ze),t(function(e,t){function r(e){De.isHexString(e,20)||u.throwArgumentError("invalid address","address",e),e=e.toLowerCase();for(var t=e.substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0);for(var o=De.arrayify(ze.keccak256(r)),n=0;n<40;n+=2)o[n>>1]>>4>=8&&(t[n]=t[n].toUpperCase()),(15&o[n>>1])>=8&&(t[n+1]=t[n+1].toUpperCase()); return"0x"+t.join("")}function n(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}function o(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";for(var t=e.split("").map(function(e){return d[e]}).join("");t.length>=p;){var r=t.substring(0,p);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function a(e){var t=null;if("string"!=typeof e&&u.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=r(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&u.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==o(e)&&u.throwArgumentError("bad icap checksum","address",e),t=He._base36To16(e.substring(4));t.length<40;)t="0"+t;t=r("0x"+t)}else u.throwArgumentError("invalid address","address",e);return t}function i(e){try{return a(e),!0}catch(t){}return!1}function s(e){for(var t=He._base16To36(a(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+o("XE00"+t)+t}function l(e){var t=null;try{t=a(e.from)}catch(r){u.throwArgumentError("missing from address","transaction",e)}var n=De.stripZeros(De.arrayify(He.BigNumber.from(e.nonce).toHexString()));return a(De.hexDataSlice(ze.keccak256(Ke.encode([t,n])),12))}function c(e,t,r){return 32!==De.hexDataLength(t)&&u.throwArgumentError("salt must be 32 bytes","salt",t),32!==De.hexDataLength(r)&&u.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),a(De.hexDataSlice(ze.keccak256(De.concat(["0xff",a(e),t,r])),12))}Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getContractAddress=t.getIcapAddress=t.isAddress=t.getAddress=void 0;for(var u=new Le.Logger(Ze.version),f=9007199254740991,d={},h=0;h<10;h++)d[String(h)]=String(h);for(var h=0;h<26;h++)d[String.fromCharCode(65+h)]=String(10+h);var p=Math.floor(n(f));t.getAddress=a,t.isAddress=i,t.getIcapAddress=s,t.getContractAddress=l,t.getCreate2Address=c})),Qe=(e(We),t(function(e,t){var r=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;var n=function(e){function t(t){return e.call(this,"address","address",t,!1)||this}return r(t,e),t.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},t.prototype.encode=function(e,t){try{t=We.getAddress(t)}catch(r){this._throwError(r.message,t)}return e.writeValue(t)},t.prototype.decode=function(e){return We.getAddress(De.hexZeroPad(e.readValue().toHexString(),20))},t}(Xe.Coder);t.AddressCoder=n})),Ye=(e(Qe),t(function(e,t){var r=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;var n=function(e){function t(t){var r=e.call(this,t.name,t.type,void 0,t.dynamic)||this;return r.coder=t,r}return r(t,e),t.prototype.defaultValue=function(){return this.coder.defaultValue()},t.prototype.encode=function(e,t){return this.coder.encode(e,t)},t.prototype.decode=function(e){return this.coder.decode(e)},t}(Xe.Coder);t.AnonymousCoder=n})),et=(e(Ye),t(function(e,t){function r(e,t,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"===_typeof(r)){var o={};n=t.map(function(e){var t=e.localName;return t||a.throwError("cannot encode object for signature with missing names",Le.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),o[t]&&a.throwError("cannot encode object for signature with duplicate names",Le.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),o[t]=!0,r[t]})}else a.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&a.throwArgumentError("types/value length mismatch","tuple",r);var i=new Xe.Writer(e.wordSize),s=new Xe.Writer(e.wordSize),l=[];t.forEach(function(e,t){var r=n[t];if(e.dynamic){var o=s.length;e.encode(s,r);var a=i.writeUpdatableValue();l.push(function(e){a(e+o)})}else e.encode(i,r)}),l.forEach(function(e){e(i.length)});var c=e.appendWriter(i);return c+=e.appendWriter(s)}function n(e,t){var r=[],n=e.subReader(0);t.forEach(function(t){var o=null;if(t.dynamic){var a=e.readValue(),i=n.subReader(a.toNumber());try{o=t.decode(i)}catch(s){if(s.code===Le.Logger.errors.BUFFER_OVERRUN)throw s;o=s,o.baseType=t.name,o.name=t.localName,o.type=t.type}}else try{o=t.decode(e)}catch(s){if(s.code===Le.Logger.errors.BUFFER_OVERRUN)throw s;o=s,o.baseType=t.name,o.name=t.localName,o.type=t.type}void 0!=o&&r.push(o)});var o=t.reduce(function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach(function(e,t){var n=e.localName;if(n&&1===o[n]&&("length"===n&&(n="_length"),null==r[n])){var a=r[t];a instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:function(){throw a}}):r[n]=a}});for(var a=function(e){var t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:function(){throw t}})},i=0;i=0?r:"")+"]",i=r===-1||t.dynamic;return o=e.call(this,"array",a,n,i)||this,o.coder=t,o.length=r,o}return o(t,e),t.prototype.defaultValue=function(){for(var e=this.coder.defaultValue(),t=[],r=0;re._data.length&&a.throwError("insufficient data length",Le.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));for(var r=[],o=0;o>6===2;i++)a++;return a}return e===p.OVERRUN?r.length-t-1:0}function o(e,t,r,o,a){return e===p.OVERLONG?(o.push(a),0):(o.push(65533),n(e,t,r,o,a))}function a(e,r){null==r&&(r=t.Utf8ErrorFuncs.error),e=De.arrayify(e);for(var n=[],o=0;o>7!==0){var i=null,s=null;if(192===(224&a))i=1,s=127;else if(224===(240&a))i=2,s=2047;else{if(240!==(248&a)){o+=128===(192&a)?r(p.UNEXPECTED_CONTINUE,o-1,e,n):r(p.BAD_PREFIX,o-1,e,n);continue}i=3,s=65535}if(o-1+i>=e.length)o+=r(p.OVERRUN,o-1,e,n);else{for(var l=a&(1<<8-i-1)-1,c=0;c1114111?o+=r(p.OUT_OF_RANGE,o-1-i,e,n,l):l>=55296&&l<=57343?o+=r(p.UTF16_SURROGATE,o-1-i,e,n,l):l<=s?o+=r(p.OVERLONG,o-1-i,e,n,l):n.push(l))}}else n.push(a)}return n}function i(e,t){void 0===t&&(t=d.current),t!=d.current&&(h.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n>6|192),r.push(63&o|128);else if(55296==(64512&o)){n++;var a=e.charCodeAt(n);if(n>=e.length||56320!==(64512&a))throw new Error("invalid utf-8 string");var i=65536+((1023&o)<<10)+(1023&a);r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)}else r.push(o>>12|224),r.push(o>>6&63|128),r.push(63&o|128)}return De.arrayify(r)}function s(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function l(e,t){return'"'+a(e,t).map(function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?s(e):(e-=65536,s((e>>10&1023)+55296)+s((1023&e)+56320))}).join("")+'"'}function c(e){return e.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(1023&e)+56320))}).join("")}function u(e,t){return c(a(e,t))}function f(e,t){return void 0===t&&(t=d.current),a(i(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t._toUtf8String=t._toEscapedUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=t.Utf8ErrorReason=t.UnicodeNormalizationForm=void 0;var d,h=new Le.Logger(ft.version);!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(d=t.UnicodeNormalizationForm||(t.UnicodeNormalizationForm={}));var p;!function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(p=t.Utf8ErrorReason||(t.Utf8ErrorReason={})),t.Utf8ErrorFuncs=Object.freeze({error:r,ignore:n,replace:o}),t.toUtf8Bytes=i,t._toEscapedUtf8String=l,t._toUtf8String=c,t.toUtf8String=u,t.toUtf8CodePoints=f})),ht=(e(dt),t(function(e,t){function r(e){var t=dt.toUtf8Bytes(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return De.hexlify(De.concat([t,ct.HashZero]).slice(0,32))}function n(e){var t=De.arrayify(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var r=31;0===t[r-1];)r--;return dt.toUtf8String(t.slice(0,r))}Object.defineProperty(t,"__esModule",{value:!0}),t.parseBytes32String=t.formatBytes32String=void 0,t.formatBytes32String=r,t.parseBytes32String=n})),pt=(e(ht),t(function(e,t){function r(e){if(e.length%4!==0)throw new Error("bad data");for(var t=[],r=0;r=r&&e<=r+o.h&&(e-r)%(o.d||1)===0){if(o.e&&o.e.indexOf(e-r)!==-1)continue;return o}}return null}function i(e){return e.reduce(function(e,t){return t.forEach(function(t){e.push(t)}),e},[])}function s(e){return!!a(e,f)}function l(e){var t=a(e,h);if(t)return[e+t.s];var r=p[e];if(r)return r;var n=m[e];if(n)return[e+n[0]];var o=g[e];return o?o:null}function c(e){return!!a(e,b)}function u(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t=dt.toUtf8CodePoints(e);t=i(t.map(function(e){if(d.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];var t=l(e);return t?t:[e]})),t=dt.toUtf8CodePoints(dt._toUtf8String(t),dt.UnicodeNormalizationForm.NFKC),t.forEach(function(e){if(c(e))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(function(e){if(s(e))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var r=dt._toUtf8String(t);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw new Error("invalid hyphen");if(r.length>63)throw new Error("too long");return r}Object.defineProperty(t,"__esModule",{value:!0}),t.nameprep=t._nameprepTableC=t._nameprepTableB2=t._nameprepTableA1=void 0;var f=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),d="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(e){return parseInt(e,16)}),h=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],p=n("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),m=n("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),g=n("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",r),b=o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");t._nameprepTableA1=s,t._nameprepTableB2=l,t._nameprepTableC=c,t.nameprep=u})),mt=(e(pt),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.nameprep=t.parseBytes32String=t.formatBytes32String=t.UnicodeNormalizationForm=t.Utf8ErrorReason=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t._toEscapedUtf8String=void 0,Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return ht.formatBytes32String}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return ht.parseBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return pt.nameprep}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return dt._toEscapedUtf8String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return dt.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return dt.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return dt.toUtf8String}}),Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return dt.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return dt.Utf8ErrorFuncs}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return dt.Utf8ErrorReason}})})),gt=(e(mt),t(function(e,t){var r=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;var n=function(e){function t(t){return e.call(this,"string",t)||this}return r(t,e),t.prototype.defaultValue=function(){return""},t.prototype.encode=function(t,r){return e.prototype.encode.call(this,t,mt.toUtf8Bytes(r))},t.prototype.decode=function(t){return mt.toUtf8String(e.prototype.decode.call(this,t))},t}(rt.DynamicBytesCoder);t.StringCoder=n})),bt=(e(gt),t(function(e,t){var r=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;var n=function(e){function t(t,r){var n=this,o=!1,a=[];t.forEach(function(e){e.dynamic&&(o=!0),a.push(e.type)});var i="tuple("+a.join(",")+")";return n=e.call(this,"tuple",i,r,o)||this,n.coders=t,n}return r(t,e),t.prototype.defaultValue=function(){var e=[];this.coders.forEach(function(t){e.push(t.defaultValue())});var t=this.coders.reduce(function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach(function(r,n){var o=r.localName;o&&1===t[o]&&("length"===o&&(o="_length"),null==e[o]&&(e[o]=e[n]))}),Object.freeze(e)},t.prototype.encode=function(e,t){return et.pack(e,this.coders,t)},t.prototype.decode=function(e){return e.coerce(this.name,et.unpack(e,this.coders))},t}(Xe.Coder);t.TupleCoder=n})),vt=(e(bt),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultAbiCoder=t.AbiCoder=void 0;var r=new Le.Logger(Ge.version),n=new RegExp(/^bytes([0-9]*)$/),o=new RegExp(/^(u?int)([0-9]*)$/),a=function(){function e(t){var n=this.constructor;r.checkNew(n,e),je.defineReadOnly(this,"coerceFunc",t||null)}return e.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new Qe.AddressCoder(e.name);case"bool":return new tt.BooleanCoder(e.name);case"string":return new gt.StringCoder(e.name);case"bytes":return new rt.BytesCoder(e.name);case"array":return new et.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new bt.TupleCoder((e.components||[]).map(function(e){return t._getCoder(e)}),e.name);case"":return new ot.NullCoder(e.name)}var a=e.type.match(o);if(a){var i=parseInt(a[2]||"256");return(0===i||i>256||i%8!==0)&&r.throwArgumentError("invalid "+a[1]+" bit length","param",e),new ut.NumberCoder(i/8,"int"===a[1],e.name)}if(a=e.type.match(n)){var i=parseInt(a[1]);return(0===i||i>32)&&r.throwArgumentError("invalid bytes length","param",e),new nt.FixedBytesCoder(i,e.name)}return r.throwArgumentError("invalid type","type",e.type)},e.prototype._getWordSize=function(){return 32},e.prototype._getReader=function(e,t){return new Xe.Reader(e,this._getWordSize(),this.coerceFunc,t)},e.prototype._getWriter=function(){return new Xe.Writer(this._getWordSize())},e.prototype.getDefaultValue=function(e){var t=this,r=e.map(function(e){return t._getCoder(Ve.ParamType.from(e))}),n=new bt.TupleCoder(r,"_");return n.defaultValue()},e.prototype.encode=function(e,t){var n=this;e.length!==t.length&&r.throwError("types/values length mismatch",Le.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t }});var o=e.map(function(e){return n._getCoder(Ve.ParamType.from(e))}),a=new bt.TupleCoder(o,"_"),i=this._getWriter();return a.encode(i,t),i.data},e.prototype.decode=function(e,t,r){var n=this,o=e.map(function(e){return n._getCoder(Ve.ParamType.from(e))}),a=new bt.TupleCoder(o,"_");return a.decode(this._getReader(De.arrayify(t),r))},e}();t.AbiCoder=a,t.defaultAbiCoder=new a})),yt=(e(vt),t(function(e,t){function r(e){return ze.keccak256(mt.toUtf8Bytes(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0,t.id=r})),_t=(e(yt),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="hash/5.4.0"})),Ct=(e(_t),t(function(e,t){function r(e){try{for(var t=e.split("."),r=0;r256||t[2]&&t[2]!==String(o))&&l.throwArgumentError("invalid numeric width","type",e);var a=h.mask(n?o-1:o),i=n?a.add(d).mul(u):f;return function(t){var r=He.BigNumber.from(t);return(r.lt(i)||r.gt(a))&&l.throwArgumentError("value out-of-bounds for "+e,"value",t),De.hexZeroPad(r.toTwos(256).toHexString(),32)}}var t=e.match(/^bytes(\d+)$/);if(t){var s=parseInt(t[1]);return(0===s||s>32||t[1]!==String(s))&&l.throwArgumentError("invalid bytes width","type",e),function(t){var n=De.arrayify(t);return n.length!==s&&l.throwArgumentError("invalid length for "+e,"value",t),r(t)}}switch(e){case"address":return function(e){return De.hexZeroPad(We.getAddress(e),32)};case"bool":return function(e){return e?p:m};case"bytes":return function(e){return ze.keccak256(e)};case"string":return function(e){return yt.id(e)}}return null}function a(e,t){return e+"("+t.map(function(e){var t=e.name,r=e.type;return r+" "+t}).join(",")+")"}var i=ke&&ke.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?r(e.value):o(e.value).then(i,s)}l((n=n.apply(e,t||[])).next())})},s=ke&&ke.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(i=2&r[0]?a["return"]:r[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,a=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]1&&l.throwArgumentError("ambiguous primary types or unused types: "+u.map(function(e){return JSON.stringify(e)}).join(", "),"types",e),je.defineReadOnly(this,"primaryType",u[0]),t(this.primaryType,{});for(var f in i){var d=Object.keys(i[f]);d.sort(),this._types[f]=a(f,e[f])+d.map(function(t){return a(t,e[t])}).join("")}}return e.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},e.prototype._getEncoder=function(e){var t=this,r=o(e);if(r)return r;var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var a=n[1],i=this.getEncoder(a),s=parseInt(n[3]);return function(e){s>=0&&e.length!==s&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var r=e.map(i);return t._types[a]&&(r=r.map(ze.keccak256)),ze.keccak256(De.hexConcat(r))}}var c=this.types[e];if(c){var u=yt.id(this._types[e]);return function(e){var r=c.map(function(r){var n=r.name,o=r.type,a=t.getEncoder(o)(e[n]);return t._types[o]?ze.keccak256(a):a});return r.unshift(u),De.hexConcat(r)}}return l.throwArgumentError("unknown type: "+e,"type",e)},e.prototype.encodeType=function(e){var t=this._types[e];return t||l.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},e.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},e.prototype.hashStruct=function(e,t){return ze.keccak256(this.encodeData(e,t))},e.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},e.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},e.prototype._visit=function(e,t,r){var n=this,a=o(e);if(a)return r(e,t);var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var s=i[1],c=parseInt(i[3]);return c>=0&&t.length!==c&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(function(e){return n._visit(s,e,r)})}var u=this.types[e];return u?u.reduce(function(e,o){var a=o.name,i=o.type;return e[a]=n._visit(i,t[a],r),e},{}):l.throwArgumentError("unknown type: "+e,"type",e)},e.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},e.from=function(t){return new e(t)},e.getPrimaryType=function(t){return e.from(t).primaryType},e.hashStruct=function(t,r,n){return e.from(r).hashStruct(t,n)},e.hashDomain=function(t){var r=[];for(var n in t){var o=g[n];o||l.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",t),r.push({name:n,type:o})}return r.sort(function(e,t){return b.indexOf(e.name)-b.indexOf(t.name)}),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)},e.encode=function(t,r,n){return De.hexConcat(["0x1901",e.hashDomain(t),e.from(r).hash(n)])},e.hash=function(t,r,n){return ze.keccak256(e.encode(t,r,n))},e.resolveNames=function(t,r,n,o){return i(this,void 0,void 0,function(){var a,i,l,c,u,f,d,h;return s(this,function(s){switch(s.label){case 0:t=je.shallowCopy(t),a={},t.verifyingContract&&!De.isHexString(t.verifyingContract,20)&&(a[t.verifyingContract]="0x"),i=e.from(r),i.visit(n,function(e,t){return"address"!==e||De.isHexString(t,20)||(a[t]="0x"),t}),l=[];for(c in a)l.push(c);u=0,s.label=1;case 1:return u1&&o.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var a=this.functions[Ve.FunctionFragment.fromString(e).format()];return a||o.throwArgumentError("no matching function","signature",e),a},e.prototype.getEvent=function(e){if(De.isHexString(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];o.throwArgumentError("no matching event","topichash",t)}if(e.indexOf("(")===-1){var n=e.trim(),a=Object.keys(this.events).filter(function(e){return e.split("(")[0]===n});return 0===a.length?o.throwArgumentError("no matching event","name",n):a.length>1&&o.throwArgumentError("multiple matching events","name",n),this.events[a[0]]}var i=this.events[Ve.EventFragment.fromString(e).format()];return i||o.throwArgumentError("no matching event","signature",e),i},e.prototype.getError=function(e){if(De.isHexString(e)){var t=je.getStatic(this.constructor,"getSighash");for(var r in this.errors){var n=this.errors[r];if(e===t(n))return this.errors[r]}o.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){var a=e.trim(),i=Object.keys(this.errors).filter(function(e){return e.split("(")[0]===a});return 0===i.length?o.throwArgumentError("no matching error","name",a):i.length>1&&o.throwArgumentError("multiple matching errors","name",a),this.errors[i[0]]}var s=this.errors[Ve.FunctionFragment.fromString(e).format()];return s||o.throwArgumentError("no matching error","signature",e),s},e.prototype.getSighash=function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(r){throw t}}return je.getStatic(this.constructor,"getSighash")(e)},e.prototype.getEventTopic=function(e){return"string"==typeof e&&(e=this.getEvent(e)),je.getStatic(this.constructor,"getEventTopic")(e)},e.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},e.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},e.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},e.prototype.decodeErrorResult=function(e,t){"string"==typeof e&&(e=this.getError(e));var r=De.arrayify(t);return De.hexlify(r.slice(0,4))!==this.getSighash(e)&&o.throwArgumentError("data signature does not match error "+e.name+".","data",De.hexlify(r)),this._decodeParams(e.inputs,r.slice(4))},e.prototype.encodeErrorResult=function(e,t){return"string"==typeof e&&(e=this.getError(e)),De.hexlify(De.concat([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},e.prototype.decodeFunctionData=function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=De.arrayify(t);return De.hexlify(r.slice(0,4))!==this.getSighash(e)&&o.throwArgumentError("data signature does not match function "+e.name+".","data",De.hexlify(r)),this._decodeParams(e.inputs,r.slice(4))},e.prototype.encodeFunctionData=function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),De.hexlify(De.concat([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},e.prototype.decodeFunctionResult=function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=De.arrayify(t),n=null,a=null,i=null,s=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(l){}break;case 4:var u=De.hexlify(r.slice(0,4)),f=c[u];if(f)a=this._abiCoder.decode(f.inputs,r.slice(4)),i=f.name,s=f.signature,f.reason&&(n=a[0]);else try{var l=this.getError(u);a=this._abiCoder.decode(l.inputs,r.slice(4)),i=l.name,s=l.format()}catch(l){console.log(l)}}return o.throwError("call revert exception",Le.Logger.errors.CALL_EXCEPTION,{method:e.format(),errorArgs:a,errorName:i,errorSignature:s,reason:n})},e.prototype.encodeFunctionResult=function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),De.hexlify(this._abiCoder.encode(e.outputs,t||[]))},e.prototype.encodeFilterTopics=function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&o.throwError("too many arguments for "+e.format(),Le.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var n=[];e.anonymous||n.push(this.getEventTopic(e));var a=function(e,t){return"string"===e.type?Tt.id(t):"bytes"===e.type?ze.keccak256(De.hexlify(t)):("address"===e.type&&r._abiCoder.encode(["address"],[t]),De.hexZeroPad(De.hexlify(t),32))};for(t.forEach(function(t,r){var i=e.inputs[r];return i.indexed?void(null==t?n.push(null):"array"===i.baseType||"tuple"===i.baseType?o.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?n.push(t.map(function(e){return a(i,e)})):n.push(a(i,t))):void(null!=t&&o.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t))});n.length&&null===n[n.length-1];)n.pop();return n},e.prototype.encodeEventLog=function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e));var n=[],a=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&o.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(function(e,o){var s=t[o];if(e.indexed)if("string"===e.type)n.push(Tt.id(s));else if("bytes"===e.type)n.push(ze.keccak256(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([e.type],[s]))}else a.push(e),i.push(s)}),{data:this._abiCoder.encode(a,i),topics:n}},e.prototype.decodeEventLog=function(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){var a=this.getEventTopic(e);De.isHexString(n[0],32)&&n[0].toLowerCase()===a||o.throwError("fragment/topic mismatch",Le.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:a,value:n[0]}),n=n.slice(1)}var i=[],s=[],c=[];e.inputs.forEach(function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(Ve.ParamType.fromObject({type:"bytes32",name:e.name})),c.push(!0)):(i.push(e),c.push(!1)):(s.push(e),c.push(!1))});var u=null!=n?this._abiCoder.decode(i,De.concat(n)):null,f=this._abiCoder.decode(s,t,!0),d=[],h=0,p=0;e.inputs.forEach(function(e,t){if(e.indexed)if(null==u)d[t]=new l({_isIndexed:!0,hash:null});else if(c[t])d[t]=new l({_isIndexed:!0,hash:u[p++]});else try{d[t]=u[p++]}catch(n){d[t]=n}else try{d[t]=f[h++]}catch(n){d[t]=n}if(e.name&&null==d[e.name]){var o=d[t];o instanceof Error?Object.defineProperty(d,e.name,{enumerable:!0,get:function(){throw r("property "+JSON.stringify(e.name),o)}}):d[e.name]=o}});for(var m=function(e){var t=d[e];t instanceof Error&&Object.defineProperty(d,e,{enumerable:!0,get:function(){throw r("index "+e,t)}})},g=0;g0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0)throw e;return a.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Le.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(t){return 0!==t[1]&&t[0]!==t[1]&&a.throwArgumentError("chainId address mismatch","transaction",e),t[0]}),[4,je.resolveProperties(t)];case 6:return[2,u.sent()]}})})},e.prototype._checkProvider=function(e){this.provider||a.throwError("missing provider",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},e.isSigner=function(e){return!(!e||!e._isSigner)},e}();t.Signer=l;var c=function(e){function t(r,n){var o=this.constructor,i=this;return a.checkNew(o,t),i=e.call(this)||this,je.defineReadOnly(i,"address",r),je.defineReadOnly(i,"provider",n||null),i}return r(t,e),t.prototype.getAddress=function(){return Promise.resolve(this.address)},t.prototype._fail=function(e,t){return Promise.resolve().then(function(){a.throwError(e,Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})})},t.prototype.signMessage=function(e){return this._fail("VoidSigner cannot sign messages","signMessage")},t.prototype.signTransaction=function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")},t.prototype._signTypedData=function(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")},t.prototype.connect=function(e){return new t(this.address,e)},t}(l);t.VoidSigner=c})),kt=(e(It),n);n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var Ft=t(function(e,t){function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n>8,i=255&o;a?r.push(a,i):r.push(i)}return r}function n(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r(o>>1)-1?(o>>1)-l:l,a.isubn(s)):s=0,n[i]=s,a.iushrn(1)}return n}function n(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,o=0,a=0;e.cmpn(-o)>0||t.cmpn(-a)>0;){var i=e.andln(3)+o&3,s=t.andln(3)+a&3;3===i&&(i=-1),3===s&&(s=-1);var l;0===(1&i)?l=0:(n=e.andln(7)+o&7,l=3!==n&&5!==n||2!==s?i:-i),r[0].push(l);var c;0===(1&s)?c=0:(n=t.andln(7)+a&7,c=3!==n&&5!==n||2!==i?s:-s),r[1].push(c),2*o===l+1&&(o=1-o),2*a===c+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return r}function o(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function a(e){return"string"==typeof e?s.toArray(e,"hex"):e}function i(e){return new Fe(e,"hex","le")}var s=t;s.assert=kt,s.toArray=Ft.toArray,s.zero2=Ft.zero2,s.toHex=Ft.toHex,s.encode=Ft.encode,s.getNAF=r,s.getJSF=n,s.cachedProperty=o,s.parseBytes=a,s.intFromLE=i}),Lt=Mt.getNAF,Nt=Mt.getJSF,Dt=Mt.assert,xt=o;o.prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(e,t){Dt(e.precomputed);var r=e._getDoubles(),n=Lt(t,1,this._bitLength),o=(1<=a;l--)i=(i<<1)+n[l];s.push(i)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),f=o;f>0;f--){for(a=0;a=0;s--){for(var l=0;s>=0&&0===a[s];s--)l++;if(s>=0&&l++,i=i.dblp(l),s<0)break;var c=a[s];Dt(0!==c),i="affine"===e.type?c>0?i.mixedAdd(o[c-1>>1]):i.mixedAdd(o[-c-1>>1].neg()):c>0?i.add(o[c-1>>1]):i.add(o[-c-1>>1].neg())}return"affine"===e.type?i.toP():i},o.prototype._wnafMulAdd=function(e,t,r,n,o){var a,i,s,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,f=0;for(a=0;a=1;a-=2){var h=a-1,p=a;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=Nt(r[h],r[p]);for(f=Math.max(b[0].length,f),u[h]=new Array(f),u[p]=new Array(f),i=0;i=0;a--){for(var A=0;a>=0;){var E=!0;for(i=0;i=0&&A++,_=_.dblp(A),a<0)break;for(i=0;i0?s=c[i][T-1>>1]:T<0&&(s=c[i][-T-1>>1].neg()),_="affine"===s.type?_.mixedAdd(s):_.add(s))}}for(a=0;a=Math.ceil((e.bitLength()+1)/t.step)},a.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o=0&&(a=t,i=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),i=i.neg()),[{a:n,b:o},{a:a,b:i}]},i.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],o=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),i=o.mul(r.a),s=a.mul(n.a),l=o.mul(r.b),c=a.mul(n.b),u=e.sub(i).sub(s),f=l.add(c).neg();return{k1:u,k2:f}},i.prototype.pointFromX=function(e,t){e=new Fe(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},i.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},i.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,a=0;a":""},s.prototype.isInfinity=function(){return this.inf},s.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},s.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=o.redSqr().redISub(this.x.redAdd(this.x)),i=o.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,i)},s.prototype.getX=function(){return this.x.fromRed()},s.prototype.getY=function(){return this.y.fromRed()},s.prototype.mul=function(e){return e=new Fe(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},s.prototype.mulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},s.prototype.jmulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},s.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},s.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},s.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e},Bt(l,xt.BasePoint),i.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),o=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),i=e.y.redMul(r.redMul(this.z)),s=n.redSub(o),l=a.redSub(i);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=n.redMul(c),d=l.redSqr().redIAdd(u).redISub(f).redISub(f),h=l.redMul(f.redISub(d)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),o=this.y,a=e.y.redMul(t).redMul(this.z),i=r.redSub(n),s=o.redSub(a);if(0===i.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=i.redSqr(),c=l.redMul(i),u=r.redMul(l),f=s.redSqr().redIAdd(c).redISub(u).redISub(u),d=s.redMul(u.redISub(f)).redISub(o.redMul(c)),h=this.z.redMul(i);return this.curve.jpoint(f,d,h)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Jt=t(function(e,t){var r=t;r.base=xt,r["short"]=Ht,r.mont=null,r.edwards=null}),jt=Bt,Gt=u,Vt=f,Xt=d,$t=h,zt=p,qt=m,Kt=g,Zt=b,Wt=v,Qt=y,Yt=_,er=C,tr=A,rr=E,nr=T,or=w,ar=S,ir=P,sr=O,lr=R,cr=I,ur=k,fr=F,dr=M,hr=L,pr={inherits:jt,toArray:Gt,toHex:Vt,htonl:Xt,toHex32:$t,zero2:zt,zero8:qt,join32:Kt,split32:Zt,rotr32:Wt,rotl32:Qt,sum32:Yt,sum32_3:er,sum32_4:tr,sum32_5:rr,sum64:nr,sum64_hi:or,sum64_lo:ar,sum64_4_hi:ir,sum64_4_lo:sr,sum64_5_hi:lr,sum64_5_lo:cr,rotr64_hi:ur,rotr64_lo:fr,shr64_hi:dr,shr64_lo:hr},mr=N;N.prototype.update=function(e,t){if(e=pr.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=pr.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,n[o++]=e>>>16&255,n[o++]=e>>>8&255,n[o++]=255&e}else for(n[o++]=255&e,n[o++]=e>>>8&255,n[o++]=e>>>16&255,n[o++]=e>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,a=8;athis.blockSize&&(e=(new this.Hash).update(e).digest()),kt(e.length<=this.blockSize);for(var t=e.length;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},de.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=Ft.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"};var Fn=Mt.assert,Mn=pe;pe.prototype._importDER=function(e,t){e=Mt.toArray(e,t);var r=new me;if(48!==e[r.place++])return!1;var n=ge(e,r);if(n===!1)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=ge(e,r);if(o===!1)return!1;var a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var i=ge(e,r);if(i===!1)return!1;if(e.length!==i+r.place)return!1;var s=e.slice(r.place,i+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Fe(a),this.s=new Fe(s),this.recoveryParam=null,!0},pe.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=be(t),r=be(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];ve(n,t.length),n=n.concat(t),n.push(2),ve(n,r.length);var o=n.concat(r),a=[48];return ve(a,o.length),a=a.concat(o),Mt.encode(a,e)};var Ln=function(){throw new Error("unsupported")},Nn=Mt.assert,Dn=ye;ye.prototype.keyPair=function(e){return new kn(this,e)},ye.prototype.keyFromPrivate=function(e,t){return kn.fromPrivate(this,e,t)},ye.prototype.keyFromPublic=function(e,t){return kn.fromPublic(this,e,t)},ye.prototype.genKeyPair=function(e){e||(e={});for(var t=new Rn({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Ln(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new Fe(2));;){var o=new Fe(t.generate(r));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},ye.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},ye.prototype.sign=function(e,t,r,n){"object"===_typeof(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new Fe(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),i=e.toArray("be",o),s=new Rn({hash:this.hash,entropy:a,nonce:i,pers:n.pers,persEnc:n.persEnc||"utf8"}),l=this.n.sub(new Fe(1)),c=0;;c++){var u=n.k?n.k(c):new Fe(s.generate(this.n.byteLength()));if(u=this._truncateToN(u,!0),!(u.cmpn(1)<=0||u.cmp(l)>=0)){var f=this.g.mul(u);if(!f.isInfinity()){var d=f.getX(),h=d.umod(this.n);if(0!==h.cmpn(0)){var p=u.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(p=p.umod(this.n),0!==p.cmpn(0)){var m=(f.getY().isOdd()?1:0)|(0!==d.cmp(h)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new Mn({r:h,s:p,recoveryParam:m})}}}}}},ye.prototype.verify=function(e,t,r,n){e=this._truncateToN(new Fe(e,16)),r=this.keyFromPublic(r,n),t=new Mn(t,"hex");var o=t.r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var i,s=a.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(o).umod(this.n);return this.curve._maxwellTrick?(i=this.g.jmulAdd(l,r.getPublic(),c),!i.isInfinity()&&i.eqXToP(o)):(i=this.g.mulAdd(l,r.getPublic(),c),!i.isInfinity()&&0===i.getX().umod(this.n).cmp(o))},ye.prototype.recoverPubKey=function(e,t,r,n){Nn((3&r)===r,"The recovery param is more than two bits"),t=new Mn(t,n);var o=this.n,a=new Fe(e),i=t.r,s=t.s,l=1&r,c=r>>1;if(i.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");i=c?this.curve.pointFromX(i.add(this.curve.n),l):this.curve.pointFromX(i,l);var u=t.r.invm(o),f=o.sub(a).mul(u).umod(o),d=s.mul(u).umod(o);return this.g.mulAdd(f,i,d)},ye.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new Mn(t,n),null!==t.recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var a;try{a=this.recoverPubKey(e,t,o)}catch(e){continue}if(a.eq(r))return o}throw new Error("Unable to find valid recovery factor")};for(var xn=t(function(e,t){var r=t;r.version={version:"6.5.4"}.version,r.utils=Mt,r.rand=function(){throw new Error("unsupported")},r.curve=Jt,r.curves=On,r.ec=Dn,r.eddsa=null}),Bn=t(function(e,t){var r=ke&&ke.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EC=void 0;var n=r(xn),o=n["default"].ec;t.EC=o}),Un=(e(Bn),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="signing-key/5.4.0"})),Hn=(e(Un),t(function(e,t){function r(){return i||(i=new Bn.EC("secp256k1")),i}function n(e,t){var n=De.splitSignature(t),o={r:De.arrayify(n.r),s:De.arrayify(n.s)};return"0x"+r().recoverPubKey(De.arrayify(e),o,n.recoveryParam).encode("hex",!1)}function o(e,t){var n=De.arrayify(e);if(32===n.length){var o=new s(n);return t?"0x"+r().keyFromPrivate(n).getPublic(!0,"hex"):o.publicKey}return 33===n.length?t?De.hexlify(n):"0x"+r().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+r().keyFromPublic(n).getPublic(!0,"hex"):De.hexlify(n):a.throwArgumentError("invalid public or private key","key","[REDACTED]")}Object.defineProperty(t,"__esModule",{value:!0}),t.computePublicKey=t.recoverPublicKey=t.SigningKey=void 0;var a=new Le.Logger(Un.version),i=null,s=function(){function e(e){je.defineReadOnly(this,"curve","secp256k1"),je.defineReadOnly(this,"privateKey",De.hexlify(e));var t=r().keyFromPrivate(De.arrayify(this.privateKey));je.defineReadOnly(this,"publicKey","0x"+t.getPublic(!1,"hex")),je.defineReadOnly(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),je.defineReadOnly(this,"_isSigningKey",!0)}return e.prototype._addPoint=function(e){var t=r().keyFromPublic(De.arrayify(this.publicKey)),n=r().keyFromPublic(De.arrayify(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},e.prototype.signDigest=function(e){var t=r().keyFromPrivate(De.arrayify(this.privateKey)),n=De.arrayify(e);32!==n.length&&a.throwArgumentError("bad digest length","digest",e);var o=t.sign(n,{canonical:!0});return De.splitSignature({recoveryParam:o.recoveryParam,r:De.hexZeroPad("0x"+o.r.toString(16),32),s:De.hexZeroPad("0x"+o.s.toString(16),32)})},e.prototype.computeSharedSecret=function(e){var t=r().keyFromPrivate(De.arrayify(this.privateKey)),n=r().keyFromPublic(De.arrayify(o(e)));return De.hexZeroPad("0x"+t.derive(n.getPublic()).toString(16),32)},e.isSigningKey=function(e){return!(!e||!e._isSigningKey)},e}();t.SigningKey=s,t.recoverPublicKey=n,t.computePublicKey=o})),Jn=(e(Hn),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="transactions/5.4.0"})),jn=(e(Jn),t(function(e,t){function r(e){return"0x"===e?null:We.getAddress(e)}function n(e){return"0x"===e?ct.Zero:He.BigNumber.from(e)}function o(e){var t=Hn.computePublicKey(e);return We.getAddress(De.hexDataSlice(ze.keccak256(De.hexDataSlice(t,1)),12))}function a(e,t){return o(Hn.recoverPublicKey(De.arrayify(e),t))}function i(e,t){var r=De.stripZeros(He.BigNumber.from(e).toHexString());return r.length>32&&T.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function s(e,t){return{address:We.getAddress(e),storageKeys:(t||[]).map(function(t,r){return 32!==De.hexDataLength(t)&&T.throwArgumentError("invalid access list storageKey","accessList["+e+":"+r+"]",t),t.toLowerCase()})}}function l(e){if(Array.isArray(e))return e.map(function(e,t){return Array.isArray(e)?(e.length>2&&T.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+t+"]",e),s(e[0],e[1])):s(e.address,e.storageKeys)});var t=Object.keys(e).map(function(t){var r=e[t].reduce(function(e,t){return e[t]=!0,e},{});return s(t,Object.keys(r).sort())});return t.sort(function(e,t){return e.address.localeCompare(t.address)}),t}function c(e){return l(e).map(function(e){return[e.address,e.storageKeys]})}function u(e,t){if(null!=e.gasPrice){var r=He.BigNumber.from(e.gasPrice),n=He.BigNumber.from(e.maxFeePerGas||0);r.eq(n)||T.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var o=[i(e.chainId||0,"chainId"),i(e.nonce||0,"nonce"),i(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),i(e.maxFeePerGas||0,"maxFeePerGas"),i(e.gasLimit||0,"gasLimit"),null!=e.to?We.getAddress(e.to):"0x",i(e.value||0,"value"),e.data||"0x",c(e.accessList||[])];if(t){var a=De.splitSignature(t);o.push(i(a.recoveryParam,"recoveryParam")),o.push(De.stripZeros(a.r)),o.push(De.stripZeros(a.s))}return De.hexConcat(["0x02",E.encode(o)])}function f(e,t){var r=[i(e.chainId||0,"chainId"),i(e.nonce||0,"nonce"),i(e.gasPrice||0,"gasPrice"),i(e.gasLimit||0,"gasLimit"),null!=e.to?We.getAddress(e.to):"0x",i(e.value||0,"value"),e.data||"0x",c(e.accessList||[])];if(t){var n=De.splitSignature(t);r.push(i(n.recoveryParam,"recoveryParam")),r.push(De.stripZeros(n.r)),r.push(De.stripZeros(n.s))}return De.hexConcat(["0x01",E.encode(r)])}function d(e,t){je.checkProperties(e,S);var r=[];w.forEach(function(t){var n=e[t.name]||[],o={};t.numeric&&(o.hexPad="left"),n=De.arrayify(De.hexlify(n,o)),t.length&&n.length!==t.length&&n.length>0&&T.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=De.stripZeros(n),n.length>t.maxLength&&T.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n)),r.push(De.hexlify(n))});var n=0;if(null!=e.chainId?(n=e.chainId,"number"!=typeof n&&T.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!De.isBytesLike(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(De.hexlify(n)),r.push("0x"),r.push("0x")),!t)return E.encode(r);var o=De.splitSignature(t),a=27+o.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),a+=2*n+8,o.v>28&&o.v!==a&&T.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):o.v!==a&&T.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(De.hexlify(a)),r.push(De.stripZeros(De.arrayify(o.r))),r.push(De.stripZeros(De.arrayify(o.s))),E.encode(r)}function h(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&T.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),d(e,t);switch(e.type){case 1:return f(e,t);case 2:return u(e,t)}return T.throwError("unsupported transaction type: "+e.type,Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function p(e,t,r){try{var o=n(t[0]).toNumber();if(0!==o&&1!==o)throw new Error("bad recid");e.v=o}catch(i){T.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=De.hexZeroPad(t[1],32),e.s=De.hexZeroPad(t[2],32);try{var s=ze.keccak256(r(e));e.from=a(s,{r:e.r,s:e.s,recoveryParam:e.v})}catch(i){console.log(i)}}function m(e){var t=E.decode(e.slice(1));9!==t.length&&12!==t.length&&T.throwArgumentError("invalid component count for transaction type: 2","payload",De.hexlify(e));var o=n(t[2]),a=n(t[3]),i={type:2,chainId:n(t[0]).toNumber(),nonce:n(t[1]).toNumber(),maxPriorityFeePerGas:o,maxFeePerGas:a,gasPrice:null,gasLimit:n(t[4]),to:r(t[5]),value:n(t[6]),data:t[7],accessList:l(t[8])};return 9===t.length?i:(i.hash=ze.keccak256(e),p(i,t.slice(9),u),i)}function g(e){var t=E.decode(e.slice(1));8!==t.length&&11!==t.length&&T.throwArgumentError("invalid component count for transaction type: 1","payload",De.hexlify(e));var o={type:1,chainId:n(t[0]).toNumber(),nonce:n(t[1]).toNumber(),gasPrice:n(t[2]),gasLimit:n(t[3]),to:r(t[4]),value:n(t[5]),data:t[6],accessList:l(t[7])};return 8===t.length?o:(o.hash=ze.keccak256(e),p(o,t.slice(8),f),o)}function b(e){var t=E.decode(e);9!==t.length&&6!==t.length&&T.throwArgumentError("invalid raw transaction","rawTransaction",e);var o={nonce:n(t[0]).toNumber(),gasPrice:n(t[1]),gasLimit:n(t[2]),to:r(t[3]),value:n(t[4]),data:t[5],chainId:0};if(6===t.length)return o;try{o.v=He.BigNumber.from(t[6]).toNumber()}catch(i){return console.log(i),o}if(o.r=De.hexZeroPad(t[7],32),o.s=De.hexZeroPad(t[8],32),He.BigNumber.from(o.r).isZero()&&He.BigNumber.from(o.s).isZero())o.chainId=o.v,o.v=0;else{o.chainId=Math.floor((o.v-35)/2),o.chainId<0&&(o.chainId=0);var s=o.v-27,l=t.slice(0,6);0!==o.chainId&&(l.push(De.hexlify(o.chainId)),l.push("0x"),l.push("0x"),s-=2*o.chainId+8);var c=ze.keccak256(E.encode(l));try{o.from=a(c,{r:De.hexlify(o.r),s:De.hexlify(o.s),recoveryParam:s})}catch(i){console.log(i)}o.hash=ze.keccak256(e)}return o.type=null,o}function v(e){var t=De.arrayify(e);if(t[0]>127)return b(t);switch(t[0]){case 1:return g(t);case 2:return m(t)}return T.throwError("unsupported transaction type: "+t[0],Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}var y=ke&&ke.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),_=ke&&ke.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),C=ke&&ke.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&y(t,e,r);return _(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.serialize=t.accessListify=t.recoverAddress=t.computeAddress=t.TransactionTypes=void 0;var A,E=C(Ke),T=new Le.Logger(Jn.version);!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(A=t.TransactionTypes||(t.TransactionTypes={}));var w=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],S={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};t.computeAddress=o,t.recoverAddress=a,t.accessListify=l,t.serialize=h,t.parse=v})),Gn=(e(jn),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="contracts/5.4.1"})),Vn=(e(Gn),t(function(e,t){function r(e,t){return d(this,void 0,void 0,function(){var r,n;return h(this,function(o){switch(o.label){case 0:return[4,t];case 1:r=o.sent();try{return[2,We.getAddress(r)]}catch(a){}return e||m.throwError("a provider or signer is needed to resolve ENS names",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),[4,e.resolveName(r)];case 2:return n=o.sent(),null==n&&m.throwArgumentError("resolver or addr is not configured for ENS name","name",r),[2,n]}})})}function n(e,t,o){return d(this,void 0,void 0,function(){return h(this,function(a){switch(a.label){case 0:return Array.isArray(o)?[4,Promise.all(o.map(function(r,o){return n(e,Array.isArray(t)?t[o]:t[r.name],r)}))]:[3,2];case 1:return[2,a.sent()];case 2:return"address"!==o.type?[3,4]:[4,r(e,t)];case 3:return[2,a.sent()];case 4:return"tuple"!==o.type?[3,6]:[4,n(e,t,o.components)];case 5:return[2,a.sent()];case 6:return"array"!==o.baseType?[3,8]:Array.isArray(t)?[4,Promise.all(t.map(function(t){return n(e,t,o.arrayChildren)}))]:[2,Promise.reject(new Error("invalid value for array"))];case 7:return[2,a.sent()];case 8:return[2,t]}})})}function o(e,t,o){return d(this,void 0,void 0,function(){var a,i,s,l,c,u,f,p,g,b,v=this;return h(this,function(y){switch(y.label){case 0:return a={},o.length===t.inputs.length+1&&"object"===_typeof(o[o.length-1])&&(a=je.shallowCopy(o.pop())),m.checkArgumentCount(o.length,t.inputs.length,"passed to contract"),e.signer?a.from?a.from=je.resolveProperties({override:r(e.signer,a.from),signer:e.signer.getAddress()}).then(function(e){return d(v,void 0,void 0,function(){return h(this,function(t){return We.getAddress(e.signer)!==e.override&&m.throwError("Contract with a Signer cannot override from",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),[2,e.override]})})}):a.from=e.signer.getAddress():a.from&&(a.from=r(e.provider,a.from)),[4,je.resolveProperties({args:n(e.signer||e.provider,o,t.inputs),address:e.resolvedAddress,overrides:je.resolveProperties(a)||{}})];case 1:if(i=y.sent(),s=e["interface"].encodeFunctionData(t,i.args),l={data:s,to:i.address},c=i.overrides,null!=c.nonce&&(l.nonce=He.BigNumber.from(c.nonce).toNumber()),null!=c.gasLimit&&(l.gasLimit=He.BigNumber.from(c.gasLimit)),null!=c.gasPrice&&(l.gasPrice=He.BigNumber.from(c.gasPrice)),null!=c.maxFeePerGas&&(l.maxFeePerGas=He.BigNumber.from(c.maxFeePerGas)),null!=c.maxPriorityFeePerGas&&(l.maxPriorityFeePerGas=He.BigNumber.from(c.maxPriorityFeePerGas)),null!=c.from&&(l.from=c.from),null!=c.type&&(l.type=c.type),null!=c.accessList&&(l.accessList=jn.accessListify(c.accessList)),null==l.gasLimit&&null!=t.gas){for(u=21e3,f=De.arrayify(s),p=0;p0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]1)){var r=t[0];try{null==l[e]&&je.defineReadOnly(l,e,l[r])}catch(n){}null==l.functions[e]&&je.defineReadOnly(l.functions,e,l.functions[r]),null==l.callStatic[e]&&je.defineReadOnly(l.callStatic,e,l.callStatic[r]),null==l.populateTransaction[e]&&je.defineReadOnly(l.populateTransaction,e,l.populateTransaction[r]),null==l.estimateGas[e]&&je.defineReadOnly(l.estimateGas,e,l.estimateGas[r])}})}return e.getContractAddress=function(e){return We.getContractAddress(e)},e.getInterface=function(e){return St.Interface.isInterface(e)?e:new St.Interface(e)},e.prototype.deployed=function(){return this._deployed()},e.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(function(){return t}):this._deployedPromise=this.provider.getCode(this.address,e).then(function(e){return"0x"===e&&m.throwError("contract not deployed",Le.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t})),this._deployedPromise},e.prototype.fallback=function(e){var t=this;this.signer||m.throwError("sending a transactions require a signer",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var r=je.shallowCopy(e||{});return["from","to"].forEach(function(e){null!=r[e]&&m.throwError("cannot override "+e,Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),r.to=this.resolvedAddress,this.deployed().then(function(){return t.signer.sendTransaction(r)})},e.prototype.connect=function(e){"string"==typeof e&&(e=new It.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this["interface"],e);return this.deployTransaction&&je.defineReadOnly(t,"deployTransaction",this.deployTransaction),t},e.prototype.attach=function(e){return new this.constructor(e,this["interface"],this.signer||this.provider)},e.isIndexed=function(e){return St.Indexed.isIndexed(e)},e.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},e.prototype._getRunningEvent=function(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new v);if("event"===e)return this._normalizeRunningEvent(new b("event",null));if("*"===e)return this._normalizeRunningEvent(new _(this.address,this["interface"]));var t=this["interface"].getEvent(e);return this._normalizeRunningEvent(new y(this.address,this["interface"],t))}if(e.topics&&e.topics.length>0){try{var r=e.topics[0];if("string"!=typeof r)throw new Error("invalid topic");var t=this["interface"].getEvent(r);return this._normalizeRunningEvent(new y(this.address,this["interface"],t,e.topics))}catch(n){}var o={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new b(u(o),o))}return this._normalizeRunningEvent(new _(this.address,this["interface"]))},e.prototype._checkRunningEvents=function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},e.prototype._wrapEvent=function(e,t,r){var n=this,o=je.deepCopy(t);return o.removeListener=function(){r&&(e.removeListener(r),n._checkRunningEvents(e))},o.getBlock=function(){return n.provider.getBlock(t.blockHash)},o.getTransaction=function(){return n.provider.getTransaction(t.transactionHash)},o.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(o),o},e.prototype._addEventListener=function(e,t,r){var n=this;if(this.provider||m.throwError("events require a provider or a signer with a provider",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var o=function(r){var o=n._wrapEvent(e,r,t);if(null==o.decodeError)try{var a=e.getEmit(o);n.emit.apply(n,p([e.filter],a))}catch(i){o.decodeError=i.error}null!=e.filter&&n.emit("event",o),null!=o.decodeError&&n.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=o,null!=e.filter&&this.provider.on(e.filter,o)}},e.prototype.queryFilter=function(e,t,r){var n=this,o=this._getRunningEvent(e),a=je.shallowCopy(o.filter);return"string"==typeof t&&De.isHexString(t,32)?(null!=r&&m.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),a.blockHash=t):(a.fromBlock=null!=t?t:0,a.toBlock=null!=r?r:"latest"),this.provider.getLogs(a).then(function(e){return e.map(function(e){return n._wrapEvent(o,e,null)})})},e.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},e.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},e.prototype.emit=function(e){for(var t=[],r=1;r0;return this._checkRunningEvents(n),o},e.prototype.listenerCount=function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce(function(e,r){return e+t._runningEvents[r].listenerCount()},0):this._getRunningEvent(e).listenerCount():0},e.prototype.listeners=function(e){if(!this.provider)return[];if(null==e){var t=[];for(var r in this._runningEvents)this._runningEvents[r].listeners().forEach(function(e){t.push(e)});return t}return this._getRunningEvent(e).listeners()},e.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var r=this._runningEvents[t];r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this},e.prototype.off=function(e,t){if(!this.provider)return this;var r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this},e.prototype.removeListener=function(e,t){return this.off(e,t)},e}();t.BaseContract=C;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t}(C);t.Contract=A;var E=function(){function e(e,t,r){var n=this.constructor,o=null;o="string"==typeof t?t:De.isBytes(t)?De.hexlify(t):t&&"string"==typeof t.object?t.object:"!","0x"!==o.substring(0,2)&&(o="0x"+o),(!De.isHexString(o)||o.length%2)&&m.throwArgumentError("invalid bytecode","bytecode",t),r&&!It.Signer.isSigner(r)&&m.throwArgumentError("invalid signer","signer",r),je.defineReadOnly(this,"bytecode",o),je.defineReadOnly(this,"interface",je.getStatic(n,"getInterface")(e)),je.defineReadOnly(this,"signer",r||null)}return e.prototype.getDeployTransaction=function(){for(var e=[],t=0;t0;)r.push(o%this.base),o=o/this.base|0}for(var i="",s=0;0===t[s]&&s=0;--l)i+=this.alphabet[r[l]];return i},e.prototype.decode=function(e){if("string"!=typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var r=0;r>=8;for(;o>0;)t.push(255&o),o>>=8}for(var i=0;e[i]===this._leader&&i>24&255,l[t.length+1]=f>>16&255,l[t.length+2]=f>>8&255,l[t.length+3]=255&f;var d=De.arrayify(Kn.computeHmac(o,e,l));a||(a=d.length,u=new Uint8Array(a),i=Math.ceil(n/a),c=n-(i-1)*a),u.set(d);for(var h=1;h=65&&e<=90||e>=97&&e<=123}))}function n(e){var t=[];return Array.prototype.forEach.call(mt.toUtf8Bytes(e),function(e){47===e?(t.push(204),t.push(129)):126===e?(t.push(110),t.push(204),t.push(131)):t.push(e)}),mt.toUtf8String(t)}function o(e){if(null==l&&(l=i.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return n(e)}),l.forEach(function(e,t){s[r(e)]=t}),"0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"!==Yn.Wordlist.check(e)))throw l=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var a=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.langEs=void 0;var i="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",s={},l=null,c=function(e){function t(){return e.call(this,"es")||this}return a(t,e),t.prototype.getWord=function(e){return o(this),l[e]},t.prototype.getWordIndex=function(e){return o(this),s[r(e)]},t}(Yn.Wordlist),u=new c;t.langEs=u,Yn.Wordlist.register(u)})),no=(e(ro),t(function(e,t){function r(e){return Yn.logger.checkNormalize(),mt.toUtf8String(Array.prototype.filter.call(mt.toUtf8Bytes(e.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function n(e){var t=[];return Array.prototype.forEach.call(mt.toUtf8Bytes(e),function(e){47===e?(t.push(204),t.push(129)):45===e?(t.push(204),t.push(128)):t.push(e)}),mt.toUtf8String(t)}function o(e){if(null==s&&(s=i.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return n(e)}),s.forEach(function(e,t){l[r(e)]=t}),"0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"!==Yn.Wordlist.check(e)))throw s=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var a=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.langFr=void 0;var i="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",s=null,l={},c=function(e){function t(){return e.call(this,"fr")||this}return a(t,e),t.prototype.getWord=function(e){return o(this),s[e]},t.prototype.getWordIndex=function(e){return o(this),l[r(e)]},t}(Yn.Wordlist),u=new c;t.langFr=u,Yn.Wordlist.register(u)})),oo=(e(no),t(function(e,t){function r(e){return De.hexlify(mt.toUtf8Bytes(e))}function n(e){function t(e){for(var t="",r=0;rr?1:0}if(null===s){s=[];var o={};o[mt.toUtf8String([227,130,154])]=!1,o[mt.toUtf8String([227,130,153])]=!1,o[mt.toUtf8String([227,130,133])]=mt.toUtf8String([227,130,134]),o[mt.toUtf8String([227,129,163])]=mt.toUtf8String([227,129,164]),o[mt.toUtf8String([227,130,131])]=mt.toUtf8String([227,130,132]),o[mt.toUtf8String([227,130,135])]=mt.toUtf8String([227,130,136]);for(var u=3;u<=9;u++)for(var f=a[u-3],d=0;d=40?e=e+168-40:e>=19&&(e=e+97-19),mt.toUtf8String([225,(e>>6)+132,(63&e)+128])}function n(e){if(null==s&&(s=[],a.forEach(function(e,t){t+=4;for(var n=0;n>2),128+l.indexOf(o[3*r+1]),128+l.indexOf(o[3*r+2])];if("zh_tw"===e.locale)for(var f=n%4,d=f;d<3;d++)u[d]=l.indexOf(a[t++])+(0==d?228:128);i[e.locale].push(mt.toUtf8String(u))}if(Yn.Wordlist.check(e)!==s[e.locale])throw i[e.locale]=null,new Error("BIP39 Wordlist for "+e.locale+" (Chinese) FAILED")}}var n=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.langZhTw=t.langZhCn=void 0;var o="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN?",u=function(e){function t(t){return e.call(this,"zh_"+t)||this}return n(t,e),t.prototype.getWord=function(e){return r(this),i[this.locale][e]},t.prototype.getWordIndex=function(e){return r(this),i[this.locale].indexOf(e)},t.prototype.split=function(e){return e=e.replace(/(?:\u3000| )+/g,""),e.split("")},t}(Yn.Wordlist),f=new u("cn");t.langZhCn=f,Yn.Wordlist.register(f),Yn.Wordlist.register(f,"zh");var d=new u("tw");t.langZhTw=d,Yn.Wordlist.register(d)})),lo=(e(so),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=void 0,t.wordlists={cz:eo.langCz,en:to.langEn,es:ro.langEs,fr:no.langFr,it:io.langIt,ja:oo.langJa,ko:ao.langKo,zh:so.langZhCn,zh_cn:so.langZhCn,zh_tw:so.langZhTw}})),co=(e(lo),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=t.Wordlist=t.logger=void 0,Object.defineProperty(t,"logger",{enumerable:!0,get:function(){return Yn.logger}}),Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return Yn.Wordlist}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return lo.wordlists}})})),uo=(e(co),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="hdnode/5.4.0"})),fo=(e(uo),t(function(e,t){function r(e){return(1<>3]|=1<<7-a%8),a++}var u=32*n.length/3,f=n.length/3,h=r(f),p=De.arrayify(Kn.sha256(o.slice(0,u/8)))[0]&h;if(p!==(o[o.length-1]&h))throw new Error("invalid checksum");return De.hexlify(o.slice(0,u/8))}function c(e,t){if(t=i(t),e=De.arrayify(e),e.length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var o=[0],a=11,s=0;s8?(o[o.length-1]<<=8,o[o.length-1]|=e[s],a-=8):(o[o.length-1]<<=a,o[o.length-1]|=e[s]>>8-a,o.push(e[s]&n(8-a)),a+=3);var l=e.length/4,c=De.arrayify(Kn.sha256(e))[0]&r(l);return o[o.length-1]<<=l,o[o.length-1]|=c>>8-l,t.join(o.map(function(e){return t.getWord(e)}))}function u(e,t){try{return l(e,t),!0}catch(r){}return!1}function f(e){return("number"!=typeof e||e<0||e>=m||e%1)&&d.throwArgumentError("invalid account index","index",e),"m/44'/60'/"+e+"'/0/0"}Object.defineProperty(t,"__esModule",{value:!0}),t.getAccountPath=t.isValidMnemonic=t.entropyToMnemonic=t.mnemonicToEntropy=t.mnemonicToSeed=t.HDNode=t.defaultPath=void 0;var d=new Le.Logger(uo.version),h=He.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=mt.toUtf8Bytes("Bitcoin seed"),m=2147483648,g={};t.defaultPath="m/44'/60'/0'/0/0";var b=function(){function e(t,r,n,o,a,i,s,l){var c=this.constructor;if(d.checkNew(c,e),t!==g)throw new Error("HDNode constructor cannot be called directly");if(r){var u=new Hn.SigningKey(r);je.defineReadOnly(this,"privateKey",u.privateKey),je.defineReadOnly(this,"publicKey",u.compressedPublicKey)}else je.defineReadOnly(this,"privateKey",null),je.defineReadOnly(this,"publicKey",De.hexlify(n));je.defineReadOnly(this,"parentFingerprint",o),je.defineReadOnly(this,"fingerprint",De.hexDataSlice(Kn.ripemd160(Kn.sha256(this.publicKey)),0,4)),je.defineReadOnly(this,"address",jn.computeAddress(this.publicKey)),je.defineReadOnly(this,"chainCode",a),je.defineReadOnly(this,"index",i),je.defineReadOnly(this,"depth",s),null==l?(je.defineReadOnly(this,"mnemonic",null),je.defineReadOnly(this,"path",null)):"string"==typeof l?(je.defineReadOnly(this,"mnemonic",null),je.defineReadOnly(this,"path",l)):(je.defineReadOnly(this,"mnemonic",l),je.defineReadOnly(this,"path",l.path))}return Object.defineProperty(e.prototype,"extendedKey",{get:function(){if(this.depth>=256)throw new Error("Depth too large!");return a(De.concat([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",De.hexlify(this.depth),this.parentFingerprint,De.hexZeroPad(De.hexlify(this.index),4),this.chainCode,null!=this.privateKey?De.concat(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),e.prototype.neuter=function(){return new e(g,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},e.prototype._derive=function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var r=this.path;r&&(r+="/"+(t&~m));var n=new Uint8Array(37);if(t&m){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(De.arrayify(this.privateKey),1),r&&(r+="'")}else n.set(De.arrayify(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=t>>24-a&255;var i=De.arrayify(Kn.computeHmac(Kn.SupportedAlgorithm.sha512,this.chainCode,n)),s=i.slice(0,32),l=i.slice(32),c=null,u=null;if(this.privateKey)c=o(He.BigNumber.from(s).add(this.privateKey).mod(h));else{var f=new Hn.SigningKey(De.hexlify(s));u=f._addPoint(this.publicKey)}var d=r,p=this.mnemonic;return p&&(d=Object.freeze({phrase:p.phrase,path:r,locale:p.locale||"en"})),new e(g,c,u,this.fingerprint,o(l),t,this.depth+1,d)},e.prototype.derivePath=function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var r=this,n=0;n=m)throw new Error("invalid path index - "+o);r=r._derive(m+a)}else{if(!o.match(/^[0-9]+$/))throw new Error("invalid path component - "+o);var a=parseInt(o);if(a>=m)throw new Error("invalid path index - "+o);r=r._derive(a)}}return r},e._fromSeed=function(t,r){var n=De.arrayify(t);if(n.length<16||n.length>64)throw new Error("invalid seed");var a=De.arrayify(Kn.computeHmac(Kn.SupportedAlgorithm.sha512,p,n));return new e(g,o(a.slice(0,32)),null,"0x00000000",o(a.slice(32)),0,0,r)},e.fromMnemonic=function(t,r,n){return n=i(n),t=c(l(t,n),n),e._fromSeed(s(t,r),{phrase:t,path:"m",locale:n.locale})},e.fromSeed=function(t){return e._fromSeed(t,null)},e.fromExtendedKey=function(t){var r=Xn.Base58.decode(t);82===r.length&&a(r.slice(0,78))===t||d.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=r[4],o=De.hexlify(r.slice(5,9)),i=parseInt(De.hexlify(r.slice(9,13)).substring(2),16),s=De.hexlify(r.slice(13,45)),l=r.slice(45,78);switch(De.hexlify(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(g,null,De.hexlify(l),o,s,i,n,null);case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new e(g,De.hexlify(l.slice(1)),null,o,s,i,n,null)}return d.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},e}();t.HDNode=b,t.mnemonicToSeed=s,t.mnemonicToEntropy=l,t.entropyToMnemonic=c,t.isValidMnemonic=u,t.getAccountPath=f})),ho=(e(fo),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="random/5.4.0"})),po=(e(ho),t(function(e,t){function r(e){(e<=0||e>1024||e%1)&&n.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return i.getRandomValues(t),De.arrayify(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;var n=new Le.Logger(ho.version),o=null;try{if(o=window,null==o)throw new Error("try next")}catch(a){try{if(o=ke,null==o)throw new Error("try next")}catch(a){o={}}}var i=o.crypto||o.msCrypto;i&&i.getRandomValues||(n.warn("WARNING: Missing strong random number source"),i={getRandomValues:function(e){return n.throwError("no secure random source avaialble",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}}),t.randomBytes=r})),mo=(e(po),t(function(e,t){function r(e){e=e.slice();for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.shuffled=void 0,t.shuffled=r})),go=(e(mo),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shuffled=t.randomBytes=void 0,Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return po.randomBytes}}),Object.defineProperty(t,"shuffled",{enumerable:!0,get:function(){return mo.shuffled}})})),bo=(e(go),t(function(e,t){!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t255)return!1;return!0}function o(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function i(e,t,r,n,o){null==n&&null==o||(e=e.slice?e.slice(n,o):Array.prototype.slice.call(e,n,o)),t.set(e,r)}function s(e){for(var t=[],r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}return{toBytes:e,fromBytes:t}}(),f=function(){function e(e){for(var t=[],r=0;r>4]+r[15&o])}return t.join("")}var r="0123456789abcdef";return{toBytes:e,fromBytes:t}}(),d={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],p=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],m=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],g=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],b=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],v=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],_=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],C=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],A=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],E=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],T=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],w=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],P=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925],O=function D(e){ if(!(this instanceof D))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(e,!0)}),this._prepare()};O.prototype._prepare=function(){var e=d[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var r,n=4*(e+1),o=this.key.length/4,a=s(this.key),t=0;t>2,this._Ke[r][t%4]=a[t],this._Kd[e-r][t%4]=a[t];for(var i,l=0,c=o;c>16&255]<<24^p[i>>8&255]<<16^p[255&i]<<8^p[i>>24&255]^h[l]<<24,l+=1,8!=o)for(var t=1;t>8&255]<<8^p[i>>16&255]<<16^p[i>>24&255]<<24;for(var t=o/2+1;t>2,f=c%4,this._Ke[u][f]=a[t],this._Kd[e-u][f]=a[t++],c++}for(var u=1;u>24&255]^w[i>>16&255]^S[i>>8&255]^P[255&i]},O.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=s(e),o=0;o<4;o++)n[o]^=this._Ke[0][o];for(var i=1;i>24&255]^b[n[(o+1)%4]>>16&255]^v[n[(o+2)%4]>>8&255]^y[255&n[(o+3)%4]]^this._Ke[i][o];n=r.slice()}for(var l,c=a(16),o=0;o<4;o++)l=this._Ke[t][o],c[4*o]=255&(p[n[o]>>24&255]^l>>24),c[4*o+1]=255&(p[n[(o+1)%4]>>16&255]^l>>16),c[4*o+2]=255&(p[n[(o+2)%4]>>8&255]^l>>8),c[4*o+3]=255&(p[255&n[(o+3)%4]]^l);return c},O.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=s(e),o=0;o<4;o++)n[o]^=this._Kd[0][o];for(var i=1;i>24&255]^C[n[(o+3)%4]>>16&255]^A[n[(o+2)%4]>>8&255]^E[255&n[(o+1)%4]]^this._Kd[i][o];n=r.slice()}for(var l,c=a(16),o=0;o<4;o++)l=this._Kd[t][o],c[4*o]=255&(m[n[o]>>24&255]^l>>24),c[4*o+1]=255&(m[n[(o+3)%4]>>16&255]^l>>16),c[4*o+2]=255&(m[n[(o+2)%4]>>8&255]^l>>8),c[4*o+3]=255&(m[255&n[(o+1)%4]]^l);return c};var R=function x(e){if(!(this instanceof x))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new O(e)};R.prototype.encrypt=function(e){if(e=o(e),e.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;n=0;--t)this._counter[t]=e%256,e>>=8},M.prototype.setBytes=function(e){if(e=o(e,!0),16!=e.length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},M.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var L=function j(e,t){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof M||(t=new M(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new O(e)};L.prototype.encrypt=function(e){for(var t=o(e,!0),r=0;r=64;){var h=n,p=o,m=a,g=i,b=s,v=l,y=c,_=u,C=void 0,A=void 0,E=void 0,T=void 0,w=void 0;for(A=0;A<16;A++)E=t+4*A,f[A]=(255&e[E])<<24|(255&e[E+1])<<16|(255&e[E+2])<<8|255&e[E+3];for(A=16;A<64;A++)C=f[A-2],T=(C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10,C=f[A-15],w=(C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3,f[A]=(T+f[A-7]|0)+(w+f[A-16]|0)|0;for(A=0;A<64;A++)T=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&v^~b&y)|0)+(_+(r[A]+f[A]|0)|0)|0,w=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&p^h&m^p&m)|0,_=y,y=v,v=b,b=g+T|0,g=m,m=p,p=h,h=T+w|0;n=n+h|0,o=o+p|0,a=a+m|0,i=i+g|0,s=s+b|0,l=l+v|0,c=c+y|0,u=u+_|0,t+=64,d-=64}}var r=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=1779033703,o=3144134277,a=1013904242,i=2773480762,s=1359893119,l=2600822924,c=528734635,u=1541459225,f=new Uint32Array(64);t(e);var d,h=e.length%64,p=e.length/536870912|0,m=e.length<<3,g=h<56?56:120,b=e.slice(e.length-h,e.length);for(b.push(128),d=h+1;d>>24&255),b.push(p>>>16&255),b.push(p>>>8&255),b.push(p>>>0&255),b.push(m>>>24&255),b.push(m>>>16&255),b.push(m>>>8&255),b.push(m>>>0&255),t(b),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,l>>>24&255,l>>>16&255,l>>>8&255,l>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function n(e,t,n){function o(){for(var e=i-1;e>=i-4;e--){if(s[e]++,s[e]<=255)return;s[e]=0}}e=e.length<=64?e:r(e);var a,i=64+t.length+4,s=new Array(i),l=new Array(64),c=[];for(a=0;a<64;a++)s[a]=54;for(a=0;a=32;)o(),c=c.concat(r(l.concat(r(s)))),n-=32;return n>0&&(o(),c=c.concat(r(l.concat(r(s))).slice(0,n))),c}function o(e,t,r,n,o){var a;for(l(e,16*(2*r-1),o,0,16),a=0;a<2*r;a++)s(e,16*a,o,16),i(o,n),l(o,0,e,t+16*a,16);for(a=0;a>>32-t}function i(e,t){l(e,0,t,0,16);for(var r=8;r>0;r-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(var n=0;n<16;++n)e[n]+=t[n]}function s(e,t,r,n){for(var o=0;o=256)return!1}return!0}function u(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function f(e,t,r,a,i,f,h){if(r=u(r,"N"),a=u(a,"r"),i=u(i,"p"),f=u(f,"dkLen"),0===r||0!==(r&r-1))throw new Error("N must be power of 2");if(r>d/128/a)throw new Error("N too large");if(a>d/128/i)throw new Error("r too large");if(!c(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!c(t))throw new Error("salt must be an array or buffer");t=Array.prototype.slice.call(t);for(var p=n(e,t,128*i*a),m=new Uint32Array(32*i*a),g=0;gk&&(t=k);for(var c=0;ck&&(t=k);for(var d=0;d>0&255),p.push(m[L]>>8&255),p.push(m[L]>>16&255),p.push(m[L]>>24&255);var D=n(e,p,f);return h&&h(null,1,D),D}h&&F(N)};if(!h)for(;;){var L=M();if(void 0!=L)return L}M()}var d=2147483647,h={scrypt:function(e,t,r,n,o,a,i){return new Promise(function(s,l){var c=0;i&&i(0),f(e,t,r,n,o,a,function(e,t,r){if(e)l(e);else if(r)i&&1!==c&&i(1),s(new Uint8Array(r));else if(i&&t!==c)return c=t,i(t)})})},syncScrypt:function(e,t,r,n,o,a){return new Uint8Array(f(e,t,r,n,o,a))}};e.exports=h}(ke)})),Eo=t(function(e,t){function r(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}function n(e,t,r){var n=yo.searchPath(e,"crypto/cipher");if("aes-128-ctr"===n){var o=yo.looseArrayify(yo.searchPath(e,"crypto/cipherparams/iv")),a=new m["default"].Counter(o),i=new m["default"].ModeOfOperation.ctr(t,a);return De.arrayify(i.decrypt(r))}return null}function o(e,t){var r=yo.looseArrayify(yo.searchPath(e,"crypto/ciphertext")),o=De.hexlify(ze.keccak256(De.concat([t.slice(16,32),r]))).substring(2);if(o!==yo.searchPath(e,"crypto/mac").toLowerCase())throw new Error("invalid password");var a=n(e,t.slice(0,16),r);a||b.throwError("unsupported cipher",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var i=t.slice(32,64),s=jn.computeAddress(a);if(e.address){var l=e.address.toLowerCase();if("0x"!==l.substring(0,2)&&(l="0x"+l),We.getAddress(l)!==s)throw new Error("address mismatch")}var c={_isKeystoreAccount:!0,address:s,privateKey:De.hexlify(a)};if("0.1"===yo.searchPath(e,"x-ethers/version")){var u=yo.looseArrayify(yo.searchPath(e,"x-ethers/mnemonicCiphertext")),f=yo.looseArrayify(yo.searchPath(e,"x-ethers/mnemonicCounter")),d=new m["default"].Counter(f),h=new m["default"].ModeOfOperation.ctr(i,d),p=yo.searchPath(e,"x-ethers/path")||fo.defaultPath,g=yo.searchPath(e,"x-ethers/locale")||"en",y=De.arrayify(h.decrypt(u));try{var _=fo.entropyToMnemonic(y,g),C=fo.HDNode.fromMnemonic(_,null,g).derivePath(p);if(C.privateKey!=c.privateKey)throw new Error("mnemonic mismatch");c.mnemonic=C.mnemonic}catch(A){if(A.code!==Le.Logger.errors.INVALID_ARGUMENT||"wordlist"!==A.argument)throw A}}return new v(c)}function a(e,t,r,n,o){return De.arrayify(Wn.pbkdf2(e,t,r,n,o))}function i(e,t,r,n,o){return Promise.resolve(a(e,t,r,n,o))}function s(e,t,r,n,o){var a=yo.getPassword(t),i=yo.searchPath(e,"crypto/kdf");if(i&&"string"==typeof i){var s=function(e,t){return b.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===i.toLowerCase()){var l=yo.looseArrayify(yo.searchPath(e,"crypto/kdfparams/salt")),c=parseInt(yo.searchPath(e,"crypto/kdfparams/n")),u=parseInt(yo.searchPath(e,"crypto/kdfparams/r")),f=parseInt(yo.searchPath(e,"crypto/kdfparams/p"));c&&u&&f||s("kdf",i),0!==(c&c-1)&&s("N",c);var d=parseInt(yo.searchPath(e,"crypto/kdfparams/dklen"));return 32!==d&&s("dklen",d),n(a,l,c,u,f,64,o)}if("pbkdf2"===i.toLowerCase()){var l=yo.looseArrayify(yo.searchPath(e,"crypto/kdfparams/salt")),h=null,p=yo.searchPath(e,"crypto/kdfparams/prf");"hmac-sha256"===p?h="sha256":"hmac-sha512"===p?h="sha512":s("prf",p);var m=parseInt(yo.searchPath(e,"crypto/kdfparams/c")),d=parseInt(yo.searchPath(e,"crypto/kdfparams/dklen"));return 32!==d&&s("dklen",d),r(a,l,m,d,h)}}return b.throwArgumentError("unsupported key-derivation function","kdf",i)}function l(e,t){var r=JSON.parse(e),n=s(r,t,a,g["default"].syncScrypt);return o(r,n)}function c(e,t,r){return d(this,void 0,void 0,function(){var n,a;return h(this,function(l){switch(l.label){case 0:return n=JSON.parse(e),[4,s(n,t,i,g["default"].scrypt,r)];case 1:return a=l.sent(),[2,o(n,a)]}})})}function u(e,t,n,o){try{if(We.getAddress(e.address)!==jn.computeAddress(e.privateKey))throw new Error("address/privateKey mismatch");if(r(e)){var a=e.mnemonic,i=fo.HDNode.fromMnemonic(a.phrase,null,a.locale).derivePath(a.path||fo.defaultPath);if(i.privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(s){return Promise.reject(s)}"function"!=typeof n||o||(o=n,n={}),n||(n={});var l=De.arrayify(e.privateKey),c=yo.getPassword(t),u=null,f=null,d=null;if(r(e)){var h=e.mnemonic;u=De.arrayify(fo.mnemonicToEntropy(h.phrase,h.locale||"en")),f=h.path||fo.defaultPath,d=h.locale||"en"}var p=n.client;p||(p="ethers.js");var b=null;b=n.salt?De.arrayify(n.salt):go.randomBytes(32);var v=null;if(n.iv){if(v=De.arrayify(n.iv),16!==v.length)throw new Error("invalid iv")}else v=go.randomBytes(16);var y=null;if(n.uuid){if(y=De.arrayify(n.uuid),16!==y.length)throw new Error("invalid uuid")}else y=go.randomBytes(16);var _=1<<17,C=8,A=1;return n.scrypt&&(n.scrypt.N&&(_=n.scrypt.N),n.scrypt.r&&(C=n.scrypt.r),n.scrypt.p&&(A=n.scrypt.p)),g["default"].scrypt(c,b,_,C,A,64,o).then(function(t){t=De.arrayify(t);var r=t.slice(0,16),n=t.slice(16,32),o=t.slice(32,64),a=new m["default"].Counter(v),i=new m["default"].ModeOfOperation.ctr(r,a),s=De.arrayify(i.encrypt(l)),c=ze.keccak256(De.concat([n,s])),h={address:e.address.substring(2).toLowerCase(),id:yo.uuidV4(y),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:De.hexlify(v).substring(2)},ciphertext:De.hexlify(s).substring(2),kdf:"scrypt",kdfparams:{salt:De.hexlify(b).substring(2),n:_,dklen:32,p:A,r:C},mac:c.substring(2)}};if(u){var g=go.randomBytes(16),E=new m["default"].Counter(g),T=new m["default"].ModeOfOperation.ctr(o,E),w=De.arrayify(T.encrypt(u)),S=new Date,P=S.getUTCFullYear()+"-"+yo.zpad(S.getUTCMonth()+1,2)+"-"+yo.zpad(S.getUTCDate(),2)+"T"+yo.zpad(S.getUTCHours(),2)+"-"+yo.zpad(S.getUTCMinutes(),2)+"-"+yo.zpad(S.getUTCSeconds(),2)+".0Z";h["x-ethers"]={client:p,gethFilename:"UTC--"+P+"--"+h.address,mnemonicCounter:De.hexlify(g).substring(2),mnemonicCiphertext:De.hexlify(w).substring(2),path:f,locale:d,version:"0.1"}}return JSON.stringify(h)})}var f=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=ke&&ke.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?r(e.value):o(e.value).then(i,s)}l((n=n.apply(e,t||[])).next())})},h=ke&&ke.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(i=2&r[0]?a["return"]:r[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,a=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&a%1===0,"invalid connection throttle limit","connection.throttleLimit",a);var i="object"===_typeof(e)?e.throttleCallback:null,u="object"===_typeof(e)&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;c.assertArgument(u>0&&u%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",u);var f={},d=null,h={method:"GET"},p=!1,m=12e4;if("string"==typeof e)d=e;else if("object"===_typeof(e)){if(null!=e&&null!=e.url||c.throwArgumentError("missing URL","connection.url",e),d=e.url,"number"==typeof e.timeout&&e.timeout>0&&(m=e.timeout),e.headers)for(var g in e.headers)f[g.toLowerCase()]={key:g,value:String(e.headers[g])},["if-none-match","if-modified-since"].indexOf(g.toLowerCase())>=0&&(p=!0);if(h.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==d.substring(0,6)&&e.allowInsecureAuthentication!==!0&&c.throwError("basic authentication requires a secure https url",Le.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:d,user:e.user,password:"[REDACTED]"});var b=e.user+":"+e.password;f.authorization={key:"Authorization",value:"Basic "+Io.encode(mt.toUtf8Bytes(b))}}}t&&(h.method="POST",h.body=t,null==f["content-type"]&&(f["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==f["content-length"]&&(f["content-length"]={key:"Content-Length",value:String(t.length)}));var v={};Object.keys(f).forEach(function(e){var t=f[e];v[t.key]=t.value}),h.headers=v;var y=function(){var e=null,t=new Promise(function(t,r){m&&(e=setTimeout(function(){null!=e&&(e=null,r(c.makeError("timeout",Le.Logger.errors.TIMEOUT,{requestBody:n(h.body,v["content-type"]),requestMethod:h.method,timeout:m,url:d})))},m))}),r=function(){null!=e&&(clearTimeout(e),e=null)};return{promise:t,cancel:r}}(),_=function(){return s(this,void 0,void 0,function(){var e,t,s,f,m,g,b,_,C,s,A;return l(this,function(l){switch(l.label){case 0:e=0,l.label=1;case 1:if(!(e=300)&&(y.cancel(),c.throwError("bad response",Le.Logger.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:n(b,t.headers?t.headers["content-type"]:null),requestBody:n(h.body,v["content-type"]),requestMethod:h.method,url:d})),!o)return[3,17];l.label=10;case 10:return l.trys.push([10,12,,17]),[4,o(b,t)];case 11:return _=l.sent(),y.cancel(),[2,_];case 12:return C=l.sent(),C.throttleRetry&&el)return void(s()&&n(new Error("retry limit reached")));var a=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));at.ceiling&&(a=t.ceiling),setTimeout(o,a)}return null},function(e){s()&&n(e)})}var a=null,i=!1,s=function(){return!i&&(i=!0,a&&clearTimeout(a),!0)};t.timeout&&(a=setTimeout(function(){s()&&n(new Error("timeout"))},t.timeout));var l=t.retryLimit,c=0;o()})}var s=ke&&ke.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?r(e.value):o(e.value).then(i,s)}l((n=n.apply(e,t||[])).next())})},l=ke&&ke.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(i=2&r[0]?a["return"]:r[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,a=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&null==e[e.length-1];)e.pop();return e.map(function(e){if(Array.isArray(e)){var t={};e.forEach(function(e){t[r(e)]=!0});var n=Object.keys(t);return n.sort(),n.join("|")}return r(e)}).join("&")}function o(e){return""===e?[]:e.split(/&/g).map(function(e){if(""===e)return[];var t=e.split("|").map(function(e){return"null"===e?null:e});return 1===t.length?t[0]:t})}function a(e){if("string"==typeof e){if(e=e.toLowerCase(),32===De.hexDataLength(e))return"tx:"+e;if(e.indexOf(":")===-1)return e}else{if(Array.isArray(e))return"filter:*:"+n(e);if(Ot.ForkEvent.isForkEvent(e))throw m.warn("not implemented"),new Error("not implemented");if(e&&"object"===_typeof(e))return"filter:"+(e.address||"*")+":"+n(e.topics||[])}throw new Error("invalid event - "+e)}function i(){return(new Date).getTime()}function s(e){return new Promise(function(t){setTimeout(t,e)})}function l(e){return De.hexZeroPad(He.BigNumber.from(e).toHexString(),32)}function c(e){return Xn.Base58.encode(De.concat([e,De.hexDataSlice(Kn.sha256(Kn.sha256(e)),0,4)]))}var u=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=ke&&ke.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?r(e.value):o(e.value).then(i,s)}l((n=n.apply(e,t||[])).next())})},d=ke&&ke.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(i=2&r[0]?a["return"]:r[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,a=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&(n.topics=r),t&&"*"!==t&&(n.address=t),n},enumerable:!1,configurable:!0}),e.prototype.pollable=function(){return this.tag.indexOf(":")>=0||g.indexOf(this.tag)>=0},e}();t.Event=b;var v={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}},y=function(){function e(e,t,r){je.defineReadOnly(this,"provider",e),je.defineReadOnly(this,"name",r),je.defineReadOnly(this,"address",e.formatter.address(t))}return e.prototype._fetchBytes=function(e,t){return f(this,void 0,void 0,function(){var r,n,o,a,i;return d(this,function(s){switch(s.label){case 0:r={to:this.address,data:De.hexConcat([e,Tt.namehash(this.name),t||"0x"])},s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.provider.call(r)];case 2:return n=s.sent(),"0x"===n?[2,null]:(o=He.BigNumber.from(De.hexDataSlice(n,0,32)).toNumber(),a=He.BigNumber.from(De.hexDataSlice(n,o,o+32)).toNumber(),[2,De.hexDataSlice(n,o+32,o+32+a)]);case 3:return i=s.sent(),i.code===Le.Logger.errors.CALL_EXCEPTION?[2,null]:[2,null];case 4:return[2]}})})},e.prototype._getAddress=function(e,t){var r=v[String(e)];if(null==r&&m.throwError("unsupported coin type: "+e,Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")"}),"eth"===r.ilk)return this.provider.formatter.address(t);var n=De.arrayify(t);if(null!=r.p2pkh){var o=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(o){var a=parseInt(o[1],16);if(o[2].length===2*a&&a>=1&&a<=75)return c(De.concat([[r.p2pkh],"0x"+o[2]]))}}if(null!=r.p2sh){var i=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(i){var s=parseInt(i[1],16);if(i[2].length===2*s&&s>=1&&s<=75)return c(De.concat([[r.p2sh],"0x"+i[2]]))}}if(null!=r.prefix){var l=n[1],u=n[0];if(0===u?20!==l&&32!==l&&(u=-1):u=-1,u>=0&&n.length===2+l&&l>=1&&l<=75){var f=p["default"].toWords(n.slice(2));return f.unshift(u),p["default"].encode(r.prefix,f)}}return null},e.prototype.getAddress=function(e){return f(this,void 0,void 0,function(){var t,r,n,o,a;return d(this,function(i){switch(i.label){case 0:if(null==e&&(e=60),60!==e)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),t={to:this.address,data:"0x3b3b57de"+Tt.namehash(this.name).substring(2)},[4,this.provider.call(t)];case 2:return r=i.sent(),"0x"===r||r===ct.HashZero?[2,null]:[2,this.provider.formatter.callAddress(r)];case 3:if(n=i.sent(),n.code===Le.Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",l(e))];case 5:return o=i.sent(),null==o||"0x"===o?[2,null]:(a=this._getAddress(e,o),null==a&&m.throwError("invalid or unsupported coin data",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:o}),[2,a])}})})},e.prototype.getContentHash=function(){return f(this,void 0,void 0,function(){var e,t,r,n;return d(this,function(o){switch(o.label){case 0:return[4,this._fetchBytes("0xbc1c58d1")];case 1:return e=o.sent(),null==e||"0x"===e?[2,null]:(t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/),t&&(r=parseInt(t[3],16),t[4].length===2*r)?[2,"ipfs://"+Xn.Base58.encode("0x"+t[1])]:(n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/),n&&64===n[1].length?[2,"bzz://"+n[1]]:[2,m.throwError("invalid or unsupported content hash data",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})]))}})})},e.prototype.getText=function(e){return f(this,void 0,void 0,function(){var t,r;return d(this,function(n){switch(n.label){case 0:return t=mt.toUtf8Bytes(e),t=De.concat([l(64),l(t.length),t]),t.length%32!==0&&(t=De.concat([t,De.hexZeroPad("0x",32-e.length%32)])),[4,this._fetchBytes("0x59d1d43c",De.hexlify(t))];case 1:return r=n.sent(),null==r||"0x"===r?[2,null]:[2,mt.toUtf8String(r)]}})})},e}();t.Resolver=y;var _=null,C=1,A=function(e){function t(t){var r=this.constructor,n=this;if(m.checkNew(r,Ot.Provider),n=e.call(this)||this,n._events=[],n._emitted={block:-2},n.formatter=r.getFormatter(),je.defineReadOnly(n,"anyNetwork","any"===t),n.anyNetwork&&(t=n.detectNetwork()),t instanceof Promise)n._networkPromise=t,t["catch"](function(e){}),n._ready()["catch"](function(e){});else{var o=je.getStatic(r,"getNetwork")(t);o?(je.defineReadOnly(n,"_network",o),n.emit("network",o,null)):m.throwArgumentError("invalid network","network",t)}return n._maxInternalBlockNumber=-1024,n._lastBlockNumber=-2,n._pollingInterval=4e3,n._fastQueryDate=0,n}return u(t,e),t.prototype._ready=function(){return f(this,void 0,void 0,function(){var e,t;return d(this,function(r){switch(r.label){case 0:if(null!=this._network)return[3,7];if(e=null,!this._networkPromise)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._networkPromise];case 2:return e=r.sent(),[3,4];case 3:return t=r.sent(),[3,4];case 4:return null!=e?[3,6]:[4,this.detectNetwork()];case 5:e=r.sent(),r.label=6;case 6:e||m.throwError("no network detected",Le.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:je.defineReadOnly(this,"_network",e),this.emit("network",e,null)),r.label=7;case 7:return[2,this._network]}})})},Object.defineProperty(t.prototype,"ready",{get:function(){var e=this;return Mo.poll(function(){return e._ready().then(function(e){return e},function(e){if(e.code!==Le.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e})})},enumerable:!1,configurable:!0}),t.getFormatter=function(){return null==_&&(_=new Ho.Formatter),_},t.getNetwork=function(e){return Oo.getNetwork(null==e?"homestead":e)},t.prototype._getInternalBlockNumber=function(e){return f(this,void 0,void 0,function(){var t,r,n,o,a,s=this;return d(this,function(l){switch(l.label){case 0:return[4,this._ready()];case 1:if(l.sent(),!(e>0))return[3,7];l.label=2;case 2:if(!this._internalBlockNumber)return[3,7];t=this._internalBlockNumber,l.label=3;case 3:return l.trys.push([3,5,,6]),[4,t];case 4:return r=l.sent(),i()-r.respTime<=e?[2,r.blockNumber]:[3,7];case 5:return n=l.sent(),this._internalBlockNumber===t?[3,7]:[3,6];case 6:return[3,2];case 7:return o=i(),a=je.resolveProperties({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(e){return null},function(e){return e})}).then(function(e){var t=e.blockNumber,r=e.networkError;if(r)throw s._internalBlockNumber===a&&(s._internalBlockNumber=null),r;var n=i();return t=He.BigNumber.from(t).toNumber(),t1e3)m.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+r+")"), this.emit("error",m.makeError("network block skew detected",Le.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(o=this._emitted.block+1;o<=r;o++)this.emit("block",o);return this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(function(e){if("block"!==e){var t=a._emitted[e];"pending"!==t&&r-t>12&&delete a._emitted[e]}})),this._lastBlockNumber===-2&&(this._lastBlockNumber=r-1),this._events.forEach(function(e){switch(e.type){case"tx":var n=e.hash,o=a.getTransactionReceipt(n).then(function(e){return e&&null!=e.blockNumber?(a._emitted["t:"+n]=e.blockNumber,a.emit(n,e),null):null})["catch"](function(e){a.emit("error",e)});t.push(o);break;case"filter":var i=e.filter;i.fromBlock=a._lastBlockNumber+1,i.toBlock=r;var o=a.getLogs(i).then(function(e){0!==e.length&&e.forEach(function(e){a._emitted["b:"+e.blockHash]=e.blockNumber,a._emitted["t:"+e.transactionHash]=e.blockNumber,a.emit(i,e)})})["catch"](function(e){a.emit("error",e)});t.push(o)}}),this._lastBlockNumber=r,Promise.all(t).then(function(){a.emit("didPoll",e)})["catch"](function(e){a.emit("error",e)}),[2]}})})},t.prototype.resetEventsBlock=function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()},Object.defineProperty(t.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),t.prototype.detectNetwork=function(){return f(this,void 0,void 0,function(){return d(this,function(e){return[2,m.throwError("provider does not support network detection",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},t.prototype.getNetwork=function(){return f(this,void 0,void 0,function(){var e,t,r;return d(this,function(n){switch(n.label){case 0:return[4,this._ready()];case 1:return e=n.sent(),[4,this.detectNetwork()];case 2:return t=n.sent(),e.chainId===t.chainId?[3,5]:this.anyNetwork?(this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),[4,s(0)]):[3,4];case 3:return n.sent(),[2,this._network];case 4:throw r=m.makeError("underlying network changed",Le.Logger.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t}),this.emit("error",r),r;case 5:return[2,e]}})})},Object.defineProperty(t.prototype,"blockNumber",{get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(t){e._setFastBlockNumber(t)},function(e){}),null!=this._fastBlockNumber?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polling",{get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval(function(){t.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){t.poll(),t._bootstrapPoll=setTimeout(function(){t._poller||t.poll(),t._bootstrapPoll=null},t.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){t.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),t.prototype._getFastBlockNumber=function(){var e=this,t=i();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then(function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber})),this._fastBlockNumberPromise},t.prototype._setFastBlockNumber=function(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))},t.prototype.waitForTransaction=function(e,t,r){return f(this,void 0,void 0,function(){return d(this,function(n){return[2,this._waitForTransaction(e,null==t?1:t,r||0,null)]})})},t.prototype._waitForTransaction=function(e,t,r,n){return f(this,void 0,void 0,function(){var o,a=this;return d(this,function(i){switch(i.label){case 0:return[4,this.getTransactionReceipt(e)];case 1:return o=i.sent(),(o?o.confirmations:0)>=t?[2,o]:[2,new Promise(function(o,i){var l=[],c=!1,u=function(){return!!c||(c=!0,l.forEach(function(e){e()}),!1)},h=function(e){e.confirmations0){var v=setTimeout(function(){u()||i(m.makeError("timeout exceeded",Le.Logger.errors.TIMEOUT,{timeout:r}))},r);v.unref&&v.unref(),l.push(function(){clearTimeout(v)})}})]}})})},t.prototype.getBlockNumber=function(){return f(this,void 0,void 0,function(){return d(this,function(e){return[2,this._getInternalBlockNumber(0)]})})},t.prototype.getGasPrice=function(){return f(this,void 0,void 0,function(){var e;return d(this,function(t){switch(t.label){case 0:return[4,this.getNetwork()];case 1:return t.sent(),[4,this.perform("getGasPrice",{})];case 2:e=t.sent();try{return[2,He.BigNumber.from(e)]}catch(r){return[2,m.throwError("bad result from backend",Le.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})]}return[2]}})})},t.prototype.getBalance=function(e,t){return f(this,void 0,void 0,function(){var r,n;return d(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,je.resolveProperties({address:this._getAddress(e),blockTag:this._getBlockTag(t)})];case 2:return r=o.sent(),[4,this.perform("getBalance",r)];case 3:n=o.sent();try{return[2,He.BigNumber.from(n)]}catch(a){return[2,m.throwError("bad result from backend",Le.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:a})]}return[2]}})})},t.prototype.getTransactionCount=function(e,t){return f(this,void 0,void 0,function(){var r,n;return d(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,je.resolveProperties({address:this._getAddress(e),blockTag:this._getBlockTag(t)})];case 2:return r=o.sent(),[4,this.perform("getTransactionCount",r)];case 3:n=o.sent();try{return[2,He.BigNumber.from(n).toNumber()]}catch(a){return[2,m.throwError("bad result from backend",Le.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:a})]}return[2]}})})},t.prototype.getCode=function(e,t){return f(this,void 0,void 0,function(){var r,n;return d(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,je.resolveProperties({address:this._getAddress(e),blockTag:this._getBlockTag(t)})];case 2:return r=o.sent(),[4,this.perform("getCode",r)];case 3:n=o.sent();try{return[2,De.hexlify(n)]}catch(a){return[2,m.throwError("bad result from backend",Le.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:a})]}return[2]}})})},t.prototype.getStorageAt=function(e,t,r){return f(this,void 0,void 0,function(){var n,o;return d(this,function(a){switch(a.label){case 0:return[4,this.getNetwork()];case 1:return a.sent(),[4,je.resolveProperties({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(function(e){return De.hexValue(e)})})];case 2:return n=a.sent(),[4,this.perform("getStorageAt",n)];case 3:o=a.sent();try{return[2,De.hexlify(o)]}catch(i){return[2,m.throwError("bad result from backend",Le.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:o,error:i})]}return[2]}})})},t.prototype._wrapTransaction=function(e,t,r){var n=this;if(null!=t&&32!==De.hexDataLength(t))throw new Error("invalid response - sendTransaction");var o=e;return null!=t&&e.hash!==t&&m.throwError("Transaction hash mismatch from Provider.sendTransaction.",Le.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),o.wait=function(t,o){return f(n,void 0,void 0,function(){var n,a;return d(this,function(i){switch(i.label){case 0:return null==t&&(t=1),null==o&&(o=0),n=void 0,0!==t&&null!=r&&(n={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r}),[4,this._waitForTransaction(e.hash,t,o,n)];case 1:return a=i.sent(),null==a&&0===t?[2,null]:(this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&m.throwError("transaction failed",Le.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),[2,a])}})})},o},t.prototype.sendTransaction=function(e){return f(this,void 0,void 0,function(){var t,r,n,o,a;return d(this,function(i){switch(i.label){case 0:return[4,this.getNetwork()];case 1:return i.sent(),[4,Promise.resolve(e).then(function(e){return De.hexlify(e)})];case 2:return t=i.sent(),r=this.formatter.transaction(e),null==r.confirmations&&(r.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:n=i.sent(),i.label=4;case 4:return i.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:t})];case 5:return o=i.sent(),[2,this._wrapTransaction(r,o,n)];case 6:throw a=i.sent(),a.transaction=r,a.transactionHash=r.hash,a;case 7:return[2]}})})},t.prototype._getTransactionRequest=function(e){return f(this,void 0,void 0,function(){var t,r,n,o,a=this;return d(this,function(i){switch(i.label){case 0:return[4,e];case 1:return t=i.sent(),r={},["from","to"].forEach(function(e){null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(function(e){return e?a._getAddress(e):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(e){null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(function(e){return e?He.BigNumber.from(e):null}))}),["type"].forEach(function(e){null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(function(e){return null!=e?e:null}))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(function(e){null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(function(e){return e?De.hexlify(e):null}))}),o=(n=this.formatter).transactionRequest,[4,je.resolveProperties(r)];case 2:return[2,o.apply(n,[i.sent()])]}})})},t.prototype._getFilter=function(e){return f(this,void 0,void 0,function(){var t,r,n,o=this;return d(this,function(a){switch(a.label){case 0:return[4,e];case 1:return e=a.sent(),t={},null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(function(r){null!=e[r]&&(t[r]=e[r])}),["fromBlock","toBlock"].forEach(function(r){null!=e[r]&&(t[r]=o._getBlockTag(e[r]))}),n=(r=this.formatter).filter,[4,je.resolveProperties(t)];case 2:return[2,n.apply(r,[a.sent()])]}})})},t.prototype.call=function(e,t){return f(this,void 0,void 0,function(){var r,n;return d(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,je.resolveProperties({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t)})];case 2:return r=o.sent(),[4,this.perform("call",r)];case 3:n=o.sent();try{return[2,De.hexlify(n)]}catch(a){return[2,m.throwError("bad result from backend",Le.Logger.errors.SERVER_ERROR,{method:"call",params:r,result:n,error:a})]}return[2]}})})},t.prototype.estimateGas=function(e){return f(this,void 0,void 0,function(){var t,r;return d(this,function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,je.resolveProperties({transaction:this._getTransactionRequest(e)})];case 2:return t=n.sent(),[4,this.perform("estimateGas",t)];case 3:r=n.sent();try{return[2,He.BigNumber.from(r)]}catch(o){return[2,m.throwError("bad result from backend",Le.Logger.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:o})]}return[2]}})})},t.prototype._getAddress=function(e){return f(this,void 0,void 0,function(){var t;return d(this,function(r){switch(r.label){case 0:return[4,this.resolveName(e)];case 1:return t=r.sent(),null==t&&m.throwError("ENS name not configured",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName("+JSON.stringify(e)+")"}),[2,t]}})})},t.prototype._getBlock=function(e,t){return f(this,void 0,void 0,function(){var r,n,o,a,i,s,l=this;return d(this,function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,e];case 2:return e=c.sent(),r=-128,n={includeTransactions:!!t},De.isHexString(e,32)?(n.blockHash=e,[3,6]):[3,3];case 3:return c.trys.push([3,5,,6]),o=n,i=(a=this.formatter).blockTag,[4,this._getBlockTag(e)];case 4:return o.blockTag=i.apply(a,[c.sent()]),De.isHexString(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16)),[3,6];case 5:return s=c.sent(),m.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e),[3,6];case 6:return[2,Mo.poll(function(){return f(l,void 0,void 0,function(){var e,o,a,i,s,l,c=this;return d(this,function(u){switch(u.label){case 0:return[4,this.perform("getBlock",n)];case 1:if(e=u.sent(),null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]?[2,null]:null!=n.blockTag&&r>this._emitted.block?[2,null]:[2,void 0];if(!t)return[3,8];o=null,a=0,u.label=2;case 2:return an.length?[2,null]:(i=mt.toUtf8String(n.slice(0,a)),[4,this.resolveName(i)])));case 4:return s=l.sent(),s!=e?[2,null]:[2,i]}})})},t.prototype.perform=function(e,t){return m.throwError(e+" not implemented",Le.Logger.errors.NOT_IMPLEMENTED,{operation:e})},t.prototype._startEvent=function(e){this.polling=this._events.filter(function(e){return e.pollable()}).length>0},t.prototype._stopEvent=function(e){this.polling=this._events.filter(function(e){return e.pollable()}).length>0},t.prototype._addEventListener=function(e,t,r){var n=new b(a(e),t,r);return this._events.push(n),this._startEvent(n),this},t.prototype.on=function(e,t){return this._addEventListener(e,t,!1)},t.prototype.once=function(e,t){return this._addEventListener(e,t,!0)},t.prototype.emit=function(e){for(var t=this,r=[],n=1;n=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&c.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Le.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:a}),t}function n(e){return new Promise(function(t){setTimeout(t,e)})}function o(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function a(e){return e?e.toLowerCase():e}var i=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=ke&&ke.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?r(e.value):o(e.value).then(i,s)}l((n=n.apply(e,t||[])).next())})},l=ke&&ke.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(i=2&r[0]?a["return"]:r[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,a=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;if(a&&this._cache[e])return this._cache[e];var i=Mo.fetchJson(this.connection,JSON.stringify(n),o).then(function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e},function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e});return a&&(this._cache[e]=i,setTimeout(function(){r._cache[e]=null},0)),i},t.prototype.prepareRequest=function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[a(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[a(t.address),t.blockTag]];case"getCode":return["eth_getCode",[a(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[a(t.address),t.position,t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":var r=je.getStatic(this.constructor,"hexlifyTransaction");return["eth_call",[r(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":var r=je.getStatic(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[r(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=a(t.filter.address)),["eth_getLogs",[t.filter]]}return null},t.prototype.perform=function(e,t){return s(this,void 0,void 0,function(){var n,o,a,i;return l(this,function(s){switch(s.label){case 0:return"call"!==e&&"estimateGas"!==e?[3,2]:(n=t.transaction,n&&null!=n.type&&He.BigNumber.from(n.type).isZero()?null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas?[3,2]:[4,this.getFeeData()]:[3,2]);case 1:o=s.sent(),null==o.maxFeePerGas&&null==o.maxPriorityFeePerGas&&(t=je.shallowCopy(t),t.transaction=je.shallowCopy(n),delete t.transaction.type),s.label=2;case 2:a=this.prepareRequest(e,t),null==a&&c.throwError(e+" not implemented",Le.Logger.errors.NOT_IMPLEMENTED,{operation:e}),s.label=3;case 3:return s.trys.push([3,5,,6]),[4,this.send(a[0],a[1])];case 4:return[2,s.sent()];case 5:return i=s.sent(),[2,r(e,i,t)];case 6:return[2]}})})},t.prototype._startEvent=function(t){"pending"===t.tag&&this._startPending(),e.prototype._startEvent.call(this,t)},t.prototype._startPending=function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(r){function o(){e.send("eth_getFilterChanges",[r]).then(function(r){if(e._pendingFilter!=t)return null;var o=Promise.resolve();return r.forEach(function(t){e._emitted["t:"+t.toLowerCase()]="pending",o=o.then(function(){return e.getTransaction(t).then(function(t){return e.emit("pending",t),null})})}),o.then(function(){return n(1e3)})}).then(function(){return e._pendingFilter!=t?void e.send("eth_uninstallFilter",[r]):(setTimeout(function(){o()},0),null)})["catch"](function(e){})}return o(),r})["catch"](function(e){})}},t.prototype._stopEvent=function(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),e.prototype._stopEvent.call(this,t)},t.hexlifyTransaction=function(e,t){var r=je.shallowCopy(p);if(t)for(var n in t)t[n]&&(r[n]=!0);je.checkProperties(e,r);var o={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null!=e[t]){var r=De.hexValue(e[t]);"gasLimit"===t&&(t="gas"),o[t]=r}}),["from","to","data"].forEach(function(t){null!=e[t]&&(o[t]=De.hexlify(e[t]))}),e.accessList&&(o.accessList=jn.accessListify(e.accessList)),o},t}(Jo.BaseProvider);t.JsonRpcProvider=m})),Go=(e(jo),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;var r=null;t.WebSocket=r;try{if(t.WebSocket=r=WebSocket,null==r)throw new Error("inject please")}catch(n){var o=new Le.Logger(Uo.version);t.WebSocket=r=function(){o.throwError("WebSockets not supported in this environment",Le.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}})),Vo=(e(Go),t(function(e,t){var r=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=ke&&ke.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?r(e.value):o(e.value).then(i,s)}l((n=n.apply(e,t||[])).next())})},o=ke&&ke.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(i=2&r[0]?a["return"]:r[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,a=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0&&(t.throttleRetry=!0),t}return e.result}function o(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){var t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function a(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function i(e,t,r){if("call"===e&&t.code===Le.Logger.errors.SERVER_ERROR){var n=t.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var o=n.data;if(o&&(o="0x"+o.replace(/^.*0x/i,"")),De.isHexString(o))return o;u.throwError("missing revert data in call exception",Le.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var a=t.message;throw t.code===Le.Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?a=t.error.message:"string"==typeof t.body?a=t.body:"string"==typeof t.responseText&&(a=t.responseText)),a=(a||"").toLowerCase(),a.match(/insufficient funds/)&&u.throwError("insufficient funds for intrinsic transaction cost",Le.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),a.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&u.throwError("nonce has already been used",Le.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),a.match(/another transaction with same nonce/)&&u.throwError("replacement fee too low",Le.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),a.match(/execution failed due to an exception|execution reverted/)&&u.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Le.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}var s=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=ke&&ke.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?r(e.value):o(e.value).then(i,s)}l((n=n.apply(e,t||[])).next())})},c=ke&&ke.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(i=2&r[0]?a["return"]:r[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,a=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&(n.filter.topics.length>1&&u.throwError("unsupported topic count",Le.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),1===n.filter.topics.length&&(h=n.filter.topics[0],"string"==typeof h&&66===h.length||u.throwError("unsupported topic format",Le.Logger.errors.UNSUPPORTED_OPERATION,{topic0:h}),d.topic0=h)),[4,this.fetch("logs",d)];case 20:p=c.sent(),m={},g=0,c.label=21;case 21:return gt?null:(n+o)/2}function a(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(He.BigNumber.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(function(e){return a(e)}));if("object"===_typeof(e)){var t=Object.keys(e);return t.sort(),"{"+t.map(function(t){var r=e[t];return r="function"==typeof r?"[function]":a(r),JSON.stringify(t)+":"+r}).join(",")+"}"}throw new Error("unknown value type: "+_typeof(e))}function i(e){function t(){return o}var r=null,n=null,o=new Promise(function(t){r=function(){n&&(clearTimeout(n),n=null),t()},n=setTimeout(r,e)}),a=function(e){return o=o.then(e)};return{cancel:r,getPromise:t,wait:a}}function s(e,t){var r={weight:e.weight};return Object.defineProperty(r,"provider",{ get:function(){return e.provider}}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function l(e,t){return function(r){var n={};r.forEach(function(t){var r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++});for(var o=Object.keys(n),a=0;a=t)return i.result}}}function c(e,t,r){var n=a;switch(t){case"getBlockNumber":return function(t){var r=t.map(function(e){return e.result}),n=o(t.map(function(e){return e.result}),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map(function(e){return e.result});return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return o(e.map(function(e){return e.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:(e=je.shallowCopy(e),e.confirmations=-1,a(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:(e=je.shallowCopy(e),e.transactions=e.transactions.map(function(e){return e=je.shallowCopy(e),e.confirmations=-1,e}),a(e))}:function(e){return null==e?null:a(e)};break;default:throw new Error("unknown method: "+t)}return l(n,e.quorum)}function u(e,t){return h(this,void 0,void 0,function(){var r;return p(this,function(n){return r=e.provider,null!=r.blockNumber&&r.blockNumber>=t||t===-1?[2,r]:[2,Mo.poll(function(){return new Promise(function(n,o){setTimeout(function(){return n(r.blockNumber>=t?r:e.cancelled?null:void 0)},0)})},{oncePoll:r})]})})}function f(e,t,r,n){return h(this,void 0,void 0,function(){var o,a,i;return p(this,function(s){switch(s.label){case 0:switch(o=e.provider,a=r){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,o[r]()];case 2:return o.getEtherPrice?[2,o.getEtherPrice()]:[3,19];case 3:return n.blockTag&&De.isHexString(n.blockTag)?[4,u(e,t)]:[3,5];case 4:o=s.sent(),s.label=5;case 5:return[2,o[r](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&De.isHexString(n.blockTag)?[4,u(e,t)]:[3,8];case 7:o=s.sent(),s.label=8;case 8:return[2,o.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&De.isHexString(n.blockTag)?[4,u(e,t)]:[3,11];case 10:o=s.sent(),s.label=11;case 11:return[2,o[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&De.isHexString(n.blockTag)?[4,u(e,t)]:[3,14];case 13:o=s.sent(),s.label=14;case 14:return[2,o[r](n.transaction)];case 15:return[2,o[r](n.transactionHash)];case 16:return i=n.filter,i.fromBlock&&De.isHexString(i.fromBlock)||i.toBlock&&De.isHexString(i.toBlock)?[4,u(e,t)]:[3,18];case 17:o=s.sent(),s.label=18;case 18:return[2,o.getLogs(i)];case 19:return[2,m.throwError("unknown method error",Le.Logger.errors.UNKNOWN_ERROR,{method:r,params:n})]}})})}var d=ke&&ke.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=ke&&ke.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?r(e.value):o(e.value).then(i,s)}l((n=n.apply(e,t||[])).next())})},p=ke&&ke.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(i=2&r[0]?a["return"]:r[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,a=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]512||a<1)&&m.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+t+"].weight",a),Object.freeze(o)}),l=s.reduce(function(e,t){return e+t.weight},0);null==o?o=l/2:o>l&&m.throwArgumentError("quorum will always fail; larger than total weight","quorum",o);var c=n(s.map(function(e){return e.provider.network}));return null==c&&(c=new Promise(function(e,t){setTimeout(function(){i.detectNetwork().then(e,t)},0)})),i=e.call(this,c)||this,je.defineReadOnly(i,"providerConfigs",Object.freeze(s)),je.defineReadOnly(i,"quorum",o),i._highestBlockNumber=-1,i}return d(t,e),t.prototype.detectNetwork=function(){return h(this,void 0,void 0,function(){var e;return p(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(e){return e.provider.getNetwork()}))];case 1:return e=t.sent(),[2,n(e)]}})})},t.prototype.perform=function(e,t){return h(this,void 0,void 0,function(){var n,o,a,l,u,d,h,y,_,C,A,E=this;return p(this,function(T){switch(T.label){case 0:return"sendTransaction"!==e?[3,2]:[4,Promise.all(this.providerConfigs.map(function(e){return e.provider.sendTransaction(t.signedTransaction).then(function(e){return e.hash},function(e){return e})}))];case 1:for(n=T.sent(),o=0;o=C.quorum?(A=l(_),void 0!==A?(u.forEach(function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}),[2,{value:A}]):y?[3,4]:[4,i(100).getPromise()]):[3,5];case 3:p.sent(),p.label=4;case 4:y=!1,p.label=5;case 5:return T=u.reduce(function(e,t){if(!t.done||null==t.error)return e;var r=t.error.code;return b.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e},{}),Object.keys(T).forEach(function(e){var t=T[e];if(!(t.weight256)throw new Error("invalid number type - "+e);return n&&(a=256),t=He.BigNumber.from(t).toTwos(a),De.zeroPad(t,a/8)}if(o=e.match(i)){var a=parseInt(o[1]);if(String(a)!==o[1]||0===a||a>32)throw new Error("invalid bytes type - "+e);if(De.arrayify(t).byteLength!==a)throw new Error("invalid value for "+e);return n?De.arrayify((t+c).substring(0,66)):t}if(o=e.match(l),o&&Array.isArray(t)){var u=o[1],f=parseInt(o[2]||String(t.length));if(f!=t.length)throw new Error("invalid value for "+e);var d=[];return t.forEach(function(e){d.push(r(u,e,!0))}),De.concat(d)}throw new Error("invalid type - "+e)}function n(e,t){if(e.length!=t.length)throw new Error("type/value count mismatch");var n=[];return e.forEach(function(e,o){n.push(r(e,t[o]))}),De.hexlify(De.concat(n))}function o(e,t){return ze.keccak256(n(e,t))}function a(e,t){return Kn.sha256(n(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=t.keccak256=t.pack=void 0;var i=new RegExp("^bytes([0-9]+)$"),s=new RegExp("^(u?int)([0-9]*)$"),l=new RegExp("^(.*)\\[([0-9]*)\\]$"),c="0000000000000000000000000000000000000000000000000000000000000000";t.pack=n,t.keccak256=o,t.sha256=a})),oa=(e(na),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="units/5.4.0"})),aa=(e(oa),t(function(e,t){function r(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&s.throwArgumentError("invalid value","value",e);var r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");var o="";for(2===t.length&&(o="."+(t[1]||"0"));o.length>2&&"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(var a=[];r.length;){if(r.length<=3){a.unshift(r);break}var i=r.length-3;a.unshift(r.substring(i)),r=r.substring(0,i)}return n+a.join(",")+o}function n(e,t){if("string"==typeof t){var r=l.indexOf(t);r!==-1&&(t=3*r)}return He.formatFixed(e,null!=t?t:18)}function o(e,t){if("string"!=typeof e&&s.throwArgumentError("value must be a string","value",e),"string"==typeof t){var r=l.indexOf(t);r!==-1&&(t=3*r)}return He.parseFixed(e,null!=t?t:18)}function a(e){return n(e,18)}function i(e){return o(e,18)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=t.commify=void 0;var s=new Le.Logger(oa.version),l=["wei","kwei","mwei","gwei","szabo","finney","ether"];t.commify=r,t.formatUnits=n,t.parseUnits=o,t.formatEther=a,t.parseEther=i})),ia=(e(aa),t(function(e,t){var r=ke&&ke.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=ke&&ke.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=ke&&ke.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes32String=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t._toEscapedUtf8String=t.nameprep=t.hexDataSlice=t.hexDataLength=t.hexZeroPad=t.hexValue=t.hexStripZeros=t.hexConcat=t.isHexString=t.hexlify=t.base64=t.base58=t.TransactionDescription=t.LogDescription=t.Interface=t.SigningKey=t.HDNode=t.defaultPath=t.isBytesLike=t.isBytes=t.zeroPad=t.stripZeros=t.concat=t.arrayify=t.shallowCopy=t.resolveProperties=t.getStatic=t.defineReadOnly=t.deepCopy=t.checkProperties=t.poll=t.fetchJson=t._fetchData=t.RLP=t.Logger=t.checkResultErrors=t.FormatTypes=t.ParamType=t.FunctionFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.Fragment=t.defaultAbiCoder=t.AbiCoder=void 0,t.Indexed=t.Utf8ErrorReason=t.UnicodeNormalizationForm=t.SupportedAlgorithm=t.mnemonicToSeed=t.isValidMnemonic=t.entropyToMnemonic=t.mnemonicToEntropy=t.getAccountPath=t.verifyTypedData=t.verifyMessage=t.recoverPublicKey=t.computePublicKey=t.recoverAddress=t.computeAddress=t.getJsonWalletAddress=t.TransactionTypes=t.serializeTransaction=t.parseTransaction=t.accessListify=t.joinSignature=t.splitSignature=t.soliditySha256=t.solidityKeccak256=t.solidityPack=t.shuffled=t.randomBytes=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.computeHmac=t.commify=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.isAddress=t.getCreate2Address=t.getContractAddress=t.getIcapAddress=t.getAddress=t._TypedDataEncoder=t.id=t.isValidName=t.namehash=t.hashMessage=t.parseBytes32String=void 0,Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return St.AbiCoder}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return St.checkResultErrors}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return St.ConstructorFragment}}),Object.defineProperty(t,"defaultAbiCoder",{enumerable:!0,get:function(){return St.defaultAbiCoder}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return St.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return St.EventFragment}}),Object.defineProperty(t,"FormatTypes",{enumerable:!0,get:function(){return St.FormatTypes}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return St.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return St.FunctionFragment}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return St.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return St.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return St.LogDescription}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return St.ParamType}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return St.TransactionDescription}}),Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return We.getAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return We.getCreate2Address}}),Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return We.getContractAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return We.getIcapAddress; }}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return We.isAddress}});var a=o(Io);t.base64=a,Object.defineProperty(t,"base58",{enumerable:!0,get:function(){return Xn.Base58}}),Object.defineProperty(t,"arrayify",{enumerable:!0,get:function(){return De.arrayify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return De.concat}}),Object.defineProperty(t,"hexConcat",{enumerable:!0,get:function(){return De.hexConcat}}),Object.defineProperty(t,"hexDataSlice",{enumerable:!0,get:function(){return De.hexDataSlice}}),Object.defineProperty(t,"hexDataLength",{enumerable:!0,get:function(){return De.hexDataLength}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return De.hexlify}}),Object.defineProperty(t,"hexStripZeros",{enumerable:!0,get:function(){return De.hexStripZeros}}),Object.defineProperty(t,"hexValue",{enumerable:!0,get:function(){return De.hexValue}}),Object.defineProperty(t,"hexZeroPad",{enumerable:!0,get:function(){return De.hexZeroPad}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return De.isBytes}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return De.isBytesLike}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return De.isHexString}}),Object.defineProperty(t,"joinSignature",{enumerable:!0,get:function(){return De.joinSignature}}),Object.defineProperty(t,"zeroPad",{enumerable:!0,get:function(){return De.zeroPad}}),Object.defineProperty(t,"splitSignature",{enumerable:!0,get:function(){return De.splitSignature}}),Object.defineProperty(t,"stripZeros",{enumerable:!0,get:function(){return De.stripZeros}}),Object.defineProperty(t,"_TypedDataEncoder",{enumerable:!0,get:function(){return Tt._TypedDataEncoder}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return Tt.hashMessage}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return Tt.id}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return Tt.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return Tt.namehash}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return fo.defaultPath}}),Object.defineProperty(t,"entropyToMnemonic",{enumerable:!0,get:function(){return fo.entropyToMnemonic}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return fo.getAccountPath}}),Object.defineProperty(t,"HDNode",{enumerable:!0,get:function(){return fo.HDNode}}),Object.defineProperty(t,"isValidMnemonic",{enumerable:!0,get:function(){return fo.isValidMnemonic}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return fo.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToSeed",{enumerable:!0,get:function(){return fo.mnemonicToSeed}}),Object.defineProperty(t,"getJsonWalletAddress",{enumerable:!0,get:function(){return To.getJsonWalletAddress}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return ze.keccak256}}),Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return Le.Logger}}),Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return Kn.computeHmac}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return Kn.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return Kn.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return Kn.sha512}}),Object.defineProperty(t,"solidityKeccak256",{enumerable:!0,get:function(){return na.keccak256}}),Object.defineProperty(t,"solidityPack",{enumerable:!0,get:function(){return na.pack}}),Object.defineProperty(t,"soliditySha256",{enumerable:!0,get:function(){return na.sha256}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return go.randomBytes}}),Object.defineProperty(t,"shuffled",{enumerable:!0,get:function(){return go.shuffled}}),Object.defineProperty(t,"checkProperties",{enumerable:!0,get:function(){return je.checkProperties}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return je.deepCopy}}),Object.defineProperty(t,"defineReadOnly",{enumerable:!0,get:function(){return je.defineReadOnly}}),Object.defineProperty(t,"getStatic",{enumerable:!0,get:function(){return je.getStatic}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return je.resolveProperties}}),Object.defineProperty(t,"shallowCopy",{enumerable:!0,get:function(){return je.shallowCopy}});var i=o(Ke);t.RLP=i,Object.defineProperty(t,"computePublicKey",{enumerable:!0,get:function(){return Hn.computePublicKey}}),Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return Hn.recoverPublicKey}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return Hn.SigningKey}}),Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return mt.formatBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return mt.nameprep}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return mt.parseBytes32String}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return mt._toEscapedUtf8String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return mt.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return mt.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return mt.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return mt.Utf8ErrorFuncs}}),Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return jn.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return jn.computeAddress}}),Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return jn.parse}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return jn.recoverAddress}}),Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return jn.serialize}}),Object.defineProperty(t,"TransactionTypes",{enumerable:!0,get:function(){return jn.TransactionTypes}}),Object.defineProperty(t,"commify",{enumerable:!0,get:function(){return aa.commify}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return aa.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return aa.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return aa.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return aa.parseUnits}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return So.verifyMessage}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return So.verifyTypedData}}),Object.defineProperty(t,"_fetchData",{enumerable:!0,get:function(){return Mo._fetchData}}),Object.defineProperty(t,"fetchJson",{enumerable:!0,get:function(){return Mo.fetchJson}}),Object.defineProperty(t,"poll",{enumerable:!0,get:function(){return Mo.poll}});var s=Kn;Object.defineProperty(t,"SupportedAlgorithm",{enumerable:!0,get:function(){return s.SupportedAlgorithm}});var l=mt;Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return l.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return l.Utf8ErrorReason}})})),sa=(e(ia),t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="ethers/5.4.7"})),la=(e(sa),t(function(e,t){var r=ke&&ke.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=ke&&ke.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=ke&&ke.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=t.version=t.wordlists=t.utils=t.logger=t.errors=t.constants=t.FixedNumber=t.BigNumber=t.ContractFactory=t.Contract=t.BaseContract=t.providers=t.getDefaultProvider=t.VoidSigner=t.Wallet=t.Signer=void 0,Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return Vn.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return Vn.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return Vn.ContractFactory}}),Object.defineProperty(t,"BigNumber",{enumerable:!0,get:function(){return He.BigNumber}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return He.FixedNumber}}),Object.defineProperty(t,"Signer",{enumerable:!0,get:function(){return It.Signer}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return It.VoidSigner}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return So.Wallet}});var a=o(ct);t.constants=a;var i=o(ra);t.providers=i;var s=ra;Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return s.getDefaultProvider}}),Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return co.Wordlist}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return co.wordlists}});var l=o(ia);t.utils=l,Object.defineProperty(t,"errors",{enumerable:!0,get:function(){return Le.ErrorCode}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return sa.version}});var c=new Le.Logger(sa.version);t.logger=c})),ca=(e(la),t(function(e,t){var r=ke&&ke.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=ke&&ke.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=ke&&ke.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=t.version=t.wordlists=t.utils=t.logger=t.errors=t.constants=t.FixedNumber=t.BigNumber=t.ContractFactory=t.Contract=t.BaseContract=t.providers=t.getDefaultProvider=t.VoidSigner=t.Wallet=t.Signer=t.ethers=void 0;var a=o(la);t.ethers=a;try{var i=window;null==i._ethers&&(i._ethers=a)}catch(s){}var l=la;Object.defineProperty(t,"Signer",{enumerable:!0,get:function(){return l.Signer}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return l.Wallet}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return l.VoidSigner}}),Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return l.getDefaultProvider}}),Object.defineProperty(t,"providers",{enumerable:!0,get:function(){return l.providers}}),Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return l.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return l.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return l.ContractFactory}}),Object.defineProperty(t,"BigNumber",{enumerable:!0,get:function(){return l.BigNumber}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}}),Object.defineProperty(t,"constants",{enumerable:!0,get:function(){return l.constants}}),Object.defineProperty(t,"errors",{enumerable:!0,get:function(){return l.errors}}),Object.defineProperty(t,"logger",{enumerable:!0,get:function(){return l.logger}}),Object.defineProperty(t,"utils",{enumerable:!0,get:function(){return l.utils}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return l.wordlists}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.version}}),Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return l.Wordlist}})})),ua=e(ca);return ua}),!function(e){var t,r,n;t=[function(e,t,r){r(1),r(77),r(78),r(79),r(80),r(81),r(82),r(83),r(84),r(85),r(86),r(87),r(88),r(89),r(90),r(91),r(103),r(105),r(108),r(110),r(112),r(114),r(115),r(116),r(117),r(119),r(120),r(122),r(126),r(127),r(128),r(129),r(133),r(134),r(136),r(137),r(138),r(141),r(142),r(143),r(144),r(145),r(150),r(152),r(153),r(154),r(155),r(162),r(164),r(167),r(168),r(169),r(170),r(171),r(172),r(176),r(177),r(179),r(180),r(181),r(183),r(184),r(185),r(186),r(187),r(188),r(194),r(196),r(197),r(198),r(200),r(201),r(203),r(204),r(206),r(207),r(208),r(209),r(210),r(211),r(212),r(213),r(214),r(215),r(216),r(220),r(221),r(223),r(225),r(226),r(227),r(228),r(229),r(231),r(233),r(234),r(235),r(237),r(238),r(240),r(241),r(242),r(243),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(265),r(266),r(267),r(268),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(304),r(305),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(315),r(318),r(319),r(320),r(321),r(325),r(326),r(328),r(329),r(330),r(331),r(333),r(334),r(335),r(336),r(337),r(338),r(340),r(341),r(342),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(370),r(371),r(372),r(373),r(374),r(375),r(379),r(380),r(381),r(382),r(383),r(384),r(385),r(386),r(387),r(388),r(389),r(390),r(391),r(392),r(393),r(394),r(395),r(396),r(397),r(398),r(399),r(400),r(401),r(403),r(404),r(405),r(412),r(413),r(414),r(415),r(417),r(418),r(420),r(421),r(422),r(423),r(425),r(426),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(438),r(439),r(440),r(442),r(444),r(445),r(446),r(447),r(449),r(450),r(451),r(452),r(453),r(454),r(455),r(456),r(457),r(458),r(459),r(460),r(461),r(463),r(465),r(467),r(468),r(469),r(470),r(472),r(473),r(475),r(476),r(477),r(478),r(479),r(480),r(482),r(483),r(484),r(485),r(487),r(488),r(489),r(490),r(491),r(493),r(494),r(495),r(496),r(497),r(498),r(499),r(500),r(501),r(502),r(503),r(504),r(505),r(507),r(508),r(509),r(510),r(511),r(512),r(513),r(515),r(516),r(517),r(518),r(519),r(520),r(521),r(522),r(523),r(525),r(526),r(527),r(529),r(530),r(531),r(532),r(533),r(534),r(535),r(536),r(537),r(538),r(539),r(540),r(541),r(542),r(543),r(544),r(545),r(546),r(547),r(548),r(549),r(550),r(551),r(552),r(553),r(554),r(555),r(556),r(557),r(558),r(559),r(560),r(561),r(562),r(563),r(564),r(565),r(566),r(567),r(568),r(569),r(570),r(571),r(574),r(575),r(576),r(577),r(578),r(582),e.exports=r(581)},function(t,r,n){var o,a=n(2),i=n(3),s=n(18),l=n(29),c=n(5),u=n(20),f=n(6),d=n(32),h=n(59),p=n(16),m=n(15),g=n(17),b=n(39),v=n(33),y=n(9),_=n(13),C=n(60),A=n(8),E=n(63),T=n(65),w=n(49),S=n(67),P=n(57),O=n(4),R=n(38),I=n(7),k=n(40),F=n(28),M=n(44),L=n(45),N=n(34),D=n(27),x=n(68),B=n(69),U=n(71),H=n(42),J=n(72).forEach,j=M("hidden"),G="Symbol",V=D("toPrimitive"),X=H.set,$=H.getterFor(G),z=Object.prototype,q=i.Symbol,K=s("JSON","stringify"),Z=O.f,W=R.f,Q=S.f,Y=I.f,ee=F("symbols"),te=F("op-symbols"),re=F("string-to-symbol-registry"),ne=F("symbol-to-string-registry"),oe=F("wks"),ae=i.QObject,ie=!ae||!ae.prototype||!ae.prototype.findChild,se=c&&f(function(){return 7!=E(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=Z(z,t);n&&delete z[t],W(e,t,r),n&&e!==z&&W(z,t,n)}:W,le=function(e,t){var r=ee[e]=E(q.prototype);return X(r,{type:G,tag:e,description:t}),c||(r.description=t),r},ce=function(e,t,r){e===z&&ce(te,t,r),b(e);var n=_(t);return b(r),d(ee,n)?(r.enumerable?(d(e,j)&&e[j][n]&&(e[j][n]=!1),r=E(r,{enumerable:A(0,!1)})):(d(e,j)||W(e,j,A(1,{})),e[j][n]=!0),se(e,n,r)):W(e,n,r)},ue=function(e,t){var r,n;return b(e),r=y(t),n=T(r).concat(pe(r)),J(n,function(t){c&&!fe.call(r,t)||ce(e,t,r[t])}),e},fe=function(e){var t=_(e),r=Y.call(this,t);return!(this===z&&d(ee,t)&&!d(te,t))&&(!(r||!d(this,t)||!d(ee,t)||d(this,j)&&this[j][t])||r)},de=function(e,t){var r,n=y(e),o=_(t);if(n!==z||!d(ee,o)||d(te,o))return!(r=Z(n,o))||!d(ee,o)||d(n,j)&&n[j][o]||(r.enumerable=!0),r},he=function(e){var t=Q(y(e)),r=[];return J(t,function(e){d(ee,e)||d(L,e)||r.push(e)}),r},pe=function(e){var t=e===z,r=Q(t?te:y(e)),n=[];return J(r,function(e){!d(ee,e)||t&&!d(z,e)||n.push(ee[e])}),n};u||(q=function(){var t,r,n;if(this instanceof q)throw TypeError("Symbol is not a constructor");return t=arguments.length&&arguments[0]!==e?C(arguments[0]):e,r=N(t),n=function(e){this===z&&n.call(te,e),d(this,j)&&d(this[j],r)&&(this[j][r]=!1),se(this,r,A(1,e))},c&&ie&&se(z,r,{configurable:!0,set:n}),le(r,t)},k(q.prototype,"toString",function(){return $(this).tag}),k(q,"withoutSetter",function(e){return le(N(e),e)}),I.f=fe,R.f=ce,O.f=de,w.f=S.f=he,P.f=pe,x.f=function(e){return le(D(e),e)},c&&(W(q.prototype,"description",{configurable:!0,get:function(){return $(this).description}}),l||k(z,"propertyIsEnumerable",fe,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),J(T(oe),function(e){B(e)}),a({target:G,stat:!0,forced:!u},{"for":function(e){var t,r=C(e);return d(re,r)?re[r]:(t=q(r),re[r]=t,ne[t]=r,t)},keyFor:function(e){if(!g(e))throw TypeError(e+" is not a symbol");if(d(ne,e))return ne[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),a({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,r){return r===e?E(t):ue(E(t),r)},defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:de}),a({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:he,getOwnPropertySymbols:pe}),a({target:"Object",stat:!0,forced:f(function(){P.f(1)})},{getOwnPropertySymbols:function(e){return P.f(v(e))}}),K&&a({target:"JSON",stat:!0,forced:!u||f(function(){var e=q();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))})},{stringify:function(t,r,n){for(var o,a=[t],i=1;arguments.length>i;)a.push(arguments[i++]);if(o=r,(m(r)||t!==e)&&!g(t))return h(r)||(r=function(e,t){if(p(o)&&(t=o.call(this,e,t)),!g(t))return t}),a[1]=r,K.apply(null,a)}}),q.prototype[V]||(o=q.prototype.valueOf,k(q.prototype,V,function(){return o.apply(this,arguments)})),U(q,G),L[j]=!0},function(t,r,n){var o=n(3),a=n(4).f,i=n(37),s=n(40),l=n(31),c=n(47),u=n(58);t.exports=function(t,r){var n,f,d,h,p,m=t.target,g=t.global,b=t.stat;if(n=g?o:b?o[m]||l(m,{}):(o[m]||{}).prototype)for(f in r){if(h=r[f],d=t.noTargetGet?(p=a(n,f))&&p.value:n[f],!u(g?f:m+(b?".":"#")+f,t.forced)&&d!==e){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&i(h,"sham",!0),s(n,f,h,t)}}},function(e,t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,t,r){var n=r(5),o=r(7),a=r(8),i=r(9),s=r(13),l=r(32),c=r(35),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=i(e),t=s(t),c)try{return u(e,t)}catch(r){}if(l(e,t))return a(!o.f.call(e,t),e[t])}},function(e,t,r){var n=r(6);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,r){var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!n.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(10),o=r(12);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(6),o=r(11),a="".split;e.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(t,r){t.exports=function(t){if(t==e)throw TypeError("Can't call method on "+t);return t}},function(e,t,r){var n=r(14),o=r(17);e.exports=function(e){var t=n(e,"string");return o(t)?t:String(t)}},function(t,r,n){var o=n(15),a=n(17),i=n(23),s=n(26),l=n(27)("toPrimitive");t.exports=function(t,r){var n,c;if(!o(t)||a(t))return t;if(n=i(t,l)){if(r===e&&(r="default"),c=n.call(t,r),!o(c)||a(c))return c;throw TypeError("Can't convert object to primitive value")}return r===e&&(r="number"),s(t,r)}},function(e,t,r){var n=r(16);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,r){var n=r(16),o=r(18),a=r(19);e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return n(t)&&Object(e)instanceof t}},function(t,r,n){var o=n(3),a=n(16),i=function(t){return a(t)?t:e};t.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},function(e,t,r){var n=r(20);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(21),o=r(6);e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},function(e,t,r){var n,o,a=r(3),i=r(22),s=a.process,l=a.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u?o=(n=u.split("."))[0]<4?1:n[0]+n[1]:i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},function(e,t,r){var n=r(18);e.exports=n("navigator","userAgent")||""},function(t,r,n){var o=n(24);t.exports=function(t,r){var n=t[r];return null==n?e:o(n)}},function(e,t,r){var n=r(16),o=r(25);e.exports=function(e){if(n(e))return e;throw TypeError(o(e)+" is not a function")}},function(e,t){e.exports=function(e){try{return String(e)}catch(t){return"Object"}}},function(e,t,r){var n=r(16),o=r(15);e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!o(a=r.call(e)))return a;if(n(r=e.valueOf)&&!o(a=r.call(e)))return a;if("string"!==t&&n(r=e.toString)&&!o(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(3),o=r(28),a=r(32),i=r(34),s=r(20),l=r(19),c=o("wks"),u=n.Symbol,f=l?u:u&&u.withoutSetter||i;e.exports=function(e){return a(c,e)&&(s||"string"==typeof c[e])||(c[e]=s&&a(u,e)?u[e]:f("Symbol."+e)),c[e]}},function(t,r,n){var o=n(29),a=n(30);(t.exports=function(t,r){return a[t]||(a[t]=r!==e?r:{})})("versions",[]).push({version:"3.18.2",mode:o?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,r){var n=r(3),o=r(31),a="__core-js_shared__",i=n[a]||o(a,{});e.exports=i},function(e,t,r){var n=r(3);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(33),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(n(e),t)}},function(e,t,r){var n=r(12);e.exports=function(e){return Object(n(e))}},function(t,r){var n=0,o=Math.random();t.exports=function(t){return"Symbol("+String(t===e?"":t)+")_"+(++n+o).toString(36)}},function(e,t,r){var n=r(5),o=r(6),a=r(36);e.exports=!n&&!o(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(3),o=r(15),a=n.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,r){var n=r(5),o=r(38),a=r(8);e.exports=n?function(e,t,r){return o.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(5),o=r(35),a=r(39),i=r(13),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(a(e),t=i(t),a(r),o)try{return s(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(15);e.exports=function(e){if(n(e))return e;throw TypeError(String(e)+" is not an object")}},function(t,r,n){var o=n(3),a=n(16),i=n(32),s=n(37),l=n(31),c=n(41),u=n(42),f=n(46).CONFIGURABLE,d=u.get,h=u.enforce,p=String(String).split("String");(t.exports=function(t,r,n,c){var u,d=!!c&&!!c.unsafe,m=!!c&&!!c.enumerable,g=!!c&&!!c.noTargetGet,b=c&&c.name!==e?c.name:r;a(n)&&("Symbol("===String(b).slice(0,7)&&(b="["+String(b).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||f&&n.name!==b)&&s(n,"name",b),(u=h(n)).source||(u.source=p.join("string"==typeof b?b:""))),t!==o?(d?!g&&t[r]&&(m=!0):delete t[r],m?t[r]=n:s(t,r,n)):m?t[r]=n:l(r,n)})(Function.prototype,"toString",function(){return a(this)&&d(this).source||c(this)})},function(e,t,r){var n=r(16),o=r(30),a=Function.toString;n(o.inspectSource)||(o.inspectSource=function(e){return a.call(e)}),e.exports=o.inspectSource},function(e,t,r){var n,o,a,i,s,l,c,u,f=r(43),d=r(3),h=r(15),p=r(37),m=r(32),g=r(30),b=r(44),v=r(45),y="Object already initialized";f||g.state?(i=g.state||(g.state=new(0,d.WeakMap)),s=i.get,l=i.has,c=i.set,n=function(e,t){if(l.call(i,e))throw new TypeError(y);return t.facade=e,c.call(i,e,t),t},o=function(e){return s.call(i,e)||{}},a=function(e){return l.call(i,e)}):(v[u=b("state")]=!0,n=function(e,t){if(m(e,u))throw new TypeError(y);return t.facade=e,p(e,u,t),t},o=function(e){return m(e,u)?e[u]:{}},a=function(e){return m(e,u)}),e.exports={set:n,get:o,has:a,enforce:function(e){return a(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!h(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(3),o=r(16),a=r(41),i=n.WeakMap;e.exports=o(i)&&/native code/.test(a(i))},function(e,t,r){var n=r(28),o=r(34),a=n("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},function(e,t){e.exports={}},function(e,t,r){var n=r(5),o=r(32),a=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,s=o(a,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&i(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(e,t,r){var n=r(32),o=r(48),a=r(4),i=r(38);e.exports=function(e,t){var r,s,l=o(t),c=i.f,u=a.f;for(r=0;rl;)n(s,r=t[l++])&&(~a(c,r)||c.push(r));return c}},function(e,t,r){var n=r(9),o=r(52),a=r(54),i=function(e){return function(t,r,i){var s,l=n(t),c=a(l),u=o(i,c);if(e&&r!=r){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},function(e,t,r){var n=r(53),o=Math.max,a=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):a(r,t)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){var t=+e;return t!=t||0===t?0:(t>0?n:r)(t)}},function(e,t,r){var n=r(55);e.exports=function(e){return n(e.length)}},function(e,t,r){var n=r(53),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(6),o=r(16),a=/#|\.prototype\./,i=function(e,t){var r=l[s(e)];return r==u||r!=c&&(o(t)?n(t):!!t)},s=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},function(e,t,r){var n=r(11);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(61);e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},function(t,r,n){var o=n(62),a=n(16),i=n(11),s=n(27)("toStringTag"),l="Arguments"==i(function(){return arguments}());t.exports=o?i:function(t){var r,n,o;return t===e?"Undefined":null===t?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(r){}}(r=Object(t),s))?n:l?i(r):"Object"==(o=i(r))&&a(r.callee)?"Arguments":o}},function(e,t,r){var n={};n[r(27)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(t,r,n){var o,a=n(39),i=n(64),s=n(56),l=n(45),c=n(66),u=n(36),f=n(44)("IE_PROTO"),d=function(){},h=function(e){return""},p=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){var e,t,r;try{o=new ActiveXObject("htmlfile")}catch(n){}for(m="undefined"!=typeof document?document.domain&&o?p(o):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):p(o),r=s.length;r--;)delete m.prototype[s[r]];return m()};l[f]=!0,t.exports=Object.create||function(t,r){var n;return null!==t?(d.prototype=a(t),n=new d,d.prototype=null,n[f]=t):n=m(),r===e?n:i(n,r)}},function(e,t,r){var n=r(5),o=r(38),a=r(39),i=r(65);e.exports=n?Object.defineProperties:function(e,t){var r,n,s,l;for(a(e),n=(r=i(t)).length,s=0;n>s;)o.f(e,l=r[s++],t[l]);return e}},function(e,t,r){var n=r(50),o=r(56);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(18);e.exports=n("document","documentElement")},function(e,t,r){var n=r(9),o=r(49).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(t){return i.slice()}}(e):o(n(e))}},function(e,t,r){var n=r(27);t.f=n},function(e,t,r){var n=r(70),o=r(32),a=r(68),i=r(38).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},function(e,t,r){var n=r(3);e.exports=n},function(e,t,r){var n=r(38).f,o=r(32),a=r(27)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(t,r,n){var o=n(73),a=n(10),i=n(33),s=n(54),l=n(74),c=[].push,u=function(t){var r=1==t,n=2==t,u=3==t,f=4==t,d=6==t,h=7==t,p=5==t||d;return function(m,g,b,v){for(var y,_,C=i(m),A=a(C),E=o(g,b,3),T=s(A),w=0,S=v||l,P=r?S(m,T):n||h?S(m,0):e;T>w;w++)if((p||w in A)&&(_=E(y=A[w],w,C),t))if(r)P[w]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:c.call(P,y)}else switch(t){case 4:return!1;case 7:c.call(P,y)}return d?-1:u||f?f:P}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(t,r,n){var o=n(24);t.exports=function(t,r,n){if(o(t),r===e)return t;switch(n){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}}},function(e,t,r){var n=r(75);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},function(t,r,n){var o=n(59),a=n(76),i=n(15),s=n(27)("species");t.exports=function(t){var r;return o(t)&&(a(r=t.constructor)&&(r===Array||o(r.prototype))||i(r)&&null===(r=r[s]))&&(r=e),r===e?Array:r}},function(e,t,r){var n=r(6),o=r(16),a=r(61),i=r(18),s=r(41),l=[],c=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=u.exec,d=!u.exec(function(){}),h=function(e){if(!o(e))return!1;try{return c(Object,l,e),!0}catch(t){return!1}};e.exports=!c||n(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!f.call(u,s(e))}:h},function(t,r,n){var o,a,i,s,l,c,u=n(2),f=n(5),d=n(3),h=n(32),p=n(16),m=n(15),g=n(38).f,b=n(47),v=d.Symbol;!f||!p(v)||"description"in v.prototype&&v().description===e||(o={},a=function(){var t=arguments.length<1||arguments[0]===e?e:String(arguments[0]),r=this instanceof a?new v(t):t===e?v():v(t);return""===t&&(o[r]=!0),r},b(a,v),(i=a.prototype=v.prototype).constructor=a,s=i.toString,l="Symbol(test)"==String(v("test")),c=/^Symbol\((.*)\)[^)]+$/, g(i,"description",{configurable:!0,get:function(){var t,r=m(this)?this.valueOf():this,n=s.call(r);return h(o,r)?"":""===(t=l?n.slice(7,-1):n.replace(c,"$1"))?e:t}}),u({global:!0,forced:!0},{Symbol:a}))},function(e,t,r){r(69)("asyncIterator")},function(e,t,r){r(69)("hasInstance")},function(e,t,r){r(69)("isConcatSpreadable")},function(e,t,r){r(69)("iterator")},function(e,t,r){r(69)("match")},function(e,t,r){r(69)("matchAll")},function(e,t,r){r(69)("replace")},function(e,t,r){r(69)("search")},function(e,t,r){r(69)("species")},function(e,t,r){r(69)("split")},function(e,t,r){r(69)("toPrimitive")},function(e,t,r){r(69)("toStringTag")},function(e,t,r){r(69)("unscopables")},function(t,r,n){var o=n(2),a=n(92),i=n(94),s=n(63),l=n(37),c=n(8),u=n(96),f=n(97),d=n(60),h=function(t,r){var n,o=this,s=arguments.length>2?arguments[2]:e;return o instanceof h?(i&&(o=i(new Error(e),a(o))),r!==e&&l(o,"message",d(r)),u(o,s),f(t,(n=[]).push,{that:n}),l(o,"errors",n),o):new h(t,r,s)};h.prototype=s(Error.prototype,{constructor:c(5,h),message:c(5,""),name:c(5,"AggregateError")}),o({global:!0},{AggregateError:h})},function(e,t,r){var n=r(32),o=r(16),a=r(33),i=r(44),s=r(93),l=i("IE_PROTO"),c=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){var t,r=a(e);return n(r,l)?r[l]:o(t=r.constructor)&&r instanceof t?t.prototype:r instanceof Object?c:null}},function(e,t,r){var n=r(6);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(t,r,n){var o=n(39),a=n(95);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return o(r),a(n),t?e.call(r,n):r.__proto__=n,r}}():e)},function(e,t,r){var n=r(16);e.exports=function(e){if("object"==typeof e||n(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,r){var n=r(15),o=r(37);e.exports=function(e,t){n(t)&&"cause"in t&&o(e,"cause",e.cause)}},function(e,t,r){var n=r(39),o=r(98),a=r(54),i=r(73),s=r(100),l=r(101),c=r(102),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var f,d,h,p,m,g,b,v=!(!r||!r.AS_ENTRIES),y=!(!r||!r.IS_ITERATOR),_=!(!r||!r.INTERRUPTED),C=i(t,r&&r.that,1+v+_),A=function(e){return f&&c(f,"normal",e),new u((!0),e)},E=function(e){return v?(n(e),_?C(e[0],e[1],A):C(e[0],e[1])):_?C(e,A):C(e)};if(y)f=e;else{if(!(d=l(e)))throw TypeError(String(e)+" is not iterable");if(o(d)){for(h=0,p=a(e);p>h;h++)if((m=E(e[h]))&&m instanceof u)return m;return new u((!1))}f=s(e,d)}for(g=f.next;!(b=g.call(f)).done;){try{m=E(b.value)}catch(T){c(f,"throw",T)}if("object"==typeof m&&m&&m instanceof u)return m}return new u((!1))}},function(t,r,n){var o=n(27),a=n(99),i=o("iterator"),s=Array.prototype;t.exports=function(t){return t!==e&&(a.Array===t||s[i]===t)}},function(e,t){e.exports={}},function(e,t,r){var n=r(24),o=r(39),a=r(101);e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return o(r.call(e));throw TypeError(String(e)+" is not iterable")}},function(t,r,n){var o=n(61),a=n(23),i=n(99),s=n(27)("iterator");t.exports=function(t){if(t!=e)return a(t,s)||a(t,"@@iterator")||i[o(t)]}},function(e,t,r){var n=r(39),o=r(23);e.exports=function(e,t,r){var a,i;n(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=a.call(e)}catch(s){i=!0,a=s}if("throw"===t)throw r;if(i)throw a;return n(a),r}},function(t,r,n){var o=n(2),a=n(33),i=n(54),s=n(53),l=n(104);o({target:"Array",proto:!0},{at:function(t){var r=a(this),n=i(r),o=s(t),l=o>=0?o:n+o;return l<0||l>=n?e:r[l]}}),l("at")},function(t,r,n){var o=n(27),a=n(63),i=n(38),s=o("unscopables"),l=Array.prototype;l[s]==e&&i.f(l,s,{configurable:!0,value:a(null)}),t.exports=function(e){l[s][e]=!0}},function(t,r,n){var o=n(2),a=n(6),i=n(59),s=n(15),l=n(33),c=n(54),u=n(106),f=n(74),d=n(107),h=n(27),p=n(21),m=h("isConcatSpreadable"),g=9007199254740991,b="Maximum allowed index exceeded",v=p>=51||!a(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),y=d("concat"),_=function(t){if(!s(t))return!1;var r=t[m];return r!==e?!!r:i(t)};o({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,r,n,o,a,i=l(this),s=f(i,0),d=0;for(t=-1,n=arguments.length;tg)throw TypeError(b);for(r=0;r=g)throw TypeError(b);u(s,d++,a)}return s.length=d,s}})},function(e,t,r){var n=r(13),o=r(38),a=r(8);e.exports=function(e,t,r){var i=n(t);i in e?o.f(e,i,a(0,r)):e[i]=r}},function(e,t,r){var n=r(6),o=r(27),a=r(21),i=o("species");e.exports=function(e){return a>=51||!n(function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,r){var n=r(2),o=r(109),a=r(104);n({target:"Array",proto:!0},{copyWithin:o}),a("copyWithin")},function(t,r,n){var o=n(33),a=n(52),i=n(54),s=Math.min;t.exports=[].copyWithin||function(t,r){var n=o(this),l=i(n),c=a(t,l),u=a(r,l),f=arguments.length>2?arguments[2]:e,d=s((f===e?l:a(f,l))-u,l-c),h=1;for(u0;)u in n?n[c]=n[u]:delete n[c],c+=h,u+=h;return n}},function(t,r,n){var o=n(2),a=n(72).every;o({target:"Array",proto:!0,forced:!n(111)("every")},{every:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}})},function(e,t,r){var n=r(6);e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){throw 1},1)})}},function(e,t,r){var n=r(2),o=r(113),a=r(104);n({target:"Array",proto:!0},{fill:o}),a("fill")},function(t,r,n){var o=n(33),a=n(52),i=n(54);t.exports=function(t){for(var r=o(this),n=i(r),s=arguments.length,l=a(s>1?arguments[1]:e,n),c=s>2?arguments[2]:e,u=c===e?n:a(c,n);u>l;)r[l++]=t;return r}},function(t,r,n){var o=n(2),a=n(72).filter;o({target:"Array",proto:!0,forced:!n(107)("filter")},{filter:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}})},function(t,r,n){var o=n(2),a=n(72).find,i=n(104),s="find",l=!0;s in[]&&Array(1).find(function(){l=!1}),o({target:"Array",proto:!0,forced:l},{find:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}}),i(s)},function(t,r,n){var o=n(2),a=n(72).findIndex,i=n(104),s="findIndex",l=!0;s in[]&&Array(1).findIndex(function(){l=!1}),o({target:"Array",proto:!0,forced:l},{findIndex:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}}),i(s)},function(t,r,n){var o=n(2),a=n(118),i=n(33),s=n(54),l=n(53),c=n(74);o({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:e,r=i(this),n=s(r),o=c(r,0);return o.length=a(o,r,r,n,0,t===e?1:l(t)),o}})},function(e,t,r){var n=r(59),o=r(54),a=r(73),i=function(e,t,r,s,l,c,u,f){for(var d,h,p=l,m=0,g=!!u&&a(u,f,3);m0&&n(d))h=o(d),p=i(e,t,d,h,p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}m++}return p};e.exports=i},function(t,r,n){var o=n(2),a=n(118),i=n(24),s=n(33),l=n(54),c=n(74);o({target:"Array",proto:!0},{flatMap:function(t){var r,n=s(this),o=l(n);return i(t),(r=c(n,0)).length=a(r,n,n,o,0,1,t,arguments.length>1?arguments[1]:e),r}})},function(e,t,r){var n=r(2),o=r(121);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,r,n){var o=n(72).forEach,a=n(111)("forEach");t.exports=a?[].forEach:function(t){return o(this,t,arguments.length>1?arguments[1]:e)}},function(e,t,r){var n=r(2),o=r(123);n({target:"Array",stat:!0,forced:!r(125)(function(e){Array.from(e)})},{from:o})},function(t,r,n){var o=n(73),a=n(33),i=n(124),s=n(98),l=n(76),c=n(54),u=n(106),f=n(100),d=n(101);t.exports=function(t){var r,n,h,p,m,g,b,v,y=a(t),_=l(this),C=arguments.length,A=C>1?arguments[1]:e,E=A!==e;if(E&&(A=o(A,C>2?arguments[2]:e,2)),n=0,!(r=d(y))||this==Array&&s(r))for(h=c(y),p=_?new this(h):Array(h);h>n;n++)v=E?A(y[n],n):y[n],u(p,n,v);else for(b=(g=f(y,r)).next,p=_?new this:[];!(m=b.call(g)).done;n++)v=E?i(g,A,[m.value,n],!0):m.value,u(p,n,v);return p.length=n,p}},function(e,t,r){var n=r(39),o=r(102);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(i){o(e,"throw",i)}}},function(e,t,r){var n,o,a=r(27)("iterator"),i=!1;try{n=0,(o={next:function(){return{done:!!n++}},"return":function(){i=!0}})[a]=function(){return this},Array.from(o,function(){throw 2})}catch(s){}e.exports=function(e,t){var r,n;if(!t&&!i)return!1;r=!1;try{(n={})[a]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(o){}return r}},function(t,r,n){var o=n(2),a=n(51).includes,i=n(104);o({target:"Array",proto:!0},{includes:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}}),i("includes")},function(t,r,n){var o=n(2),a=n(51).indexOf,i=n(111),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf");o({target:"Array",proto:!0,forced:l||!c},{indexOf:function(t){return l?s.apply(this,arguments)||0:a(this,t,arguments.length>1?arguments[1]:e)}})},function(e,t,r){r(2)({target:"Array",stat:!0},{isArray:r(59)})},function(t,r,n){var o=n(9),a=n(104),i=n(99),s=n(42),l=n(130),c="Array Iterator",u=s.set,f=s.getterFor(c);t.exports=l(Array,"Array",function(e,t){u(this,{type:c,target:o(e),index:0,kind:t})},function(){var t=f(this),r=t.target,n=t.kind,o=t.index++;return!r||o>=r.length?(t.target=e,{value:e,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:r[o],done:!1}:{value:[o,r[o]],done:!1}},"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},function(e,t,r){var n=r(2),o=r(29),a=r(46),i=r(16),s=r(131),l=r(92),c=r(94),u=r(71),f=r(37),d=r(40),h=r(27),p=r(99),m=r(132),g=a.PROPER,b=a.CONFIGURABLE,v=m.IteratorPrototype,y=m.BUGGY_SAFARI_ITERATORS,_=h("iterator"),C="keys",A="values",E="entries",T=function(){return this};e.exports=function(e,t,r,a,h,m,w){var S,P,O,R,I,k,F,M,L,N;if(s(r,t,a),S=function(e){if(e===h&&k)return k;if(!y&&e in R)return R[e];switch(e){case C:return function(){return new r(this,e)};case A:return function(){return new r(this,e)};case E:return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",O=!1,I=(R=e.prototype)[_]||R["@@iterator"]||h&&R[h],k=!y&&I||S(h),(F="Array"==t&&R.entries||I)&&(M=l(F.call(new e)))!==Object.prototype&&M.next&&(o||l(M)===v||(c?c(M,v):i(M[_])||d(M,_,T)),u(M,P,!0,!0),o&&(p[P]=T)),g&&h==A&&I&&I.name!==A&&(!o&&b?f(R,"name",A):(O=!0,k=function(){return I.call(this)})),h)if(L={values:S(A),keys:m?k:S(C),entries:S(E)},w)for(N in L)(y||O||!(N in R))&&d(R,N,L[N]);else n({target:t,proto:!0,forced:y||O},L);return o&&!w||R[_]===k||d(R,_,k,{name:h}),p[t]=k,L}},function(e,t,r){var n=r(132).IteratorPrototype,o=r(63),a=r(8),i=r(71),s=r(99),l=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=o(n,{next:a(1,r)}),i(e,c,!1,!0),s[c]=l,e}},function(t,r,n){var o,a,i,s=n(6),l=n(16),c=n(63),u=n(92),f=n(40),d=n(27),h=n(29),p=d("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(a=u(u(i)))!==Object.prototype&&(o=a):m=!0),o==e||s(function(){var e={};return o[p].call(e)!==e})?o={}:h&&(o=c(o)),l(o[p])||f(o,p,function(){return this}),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},function(t,r,n){var o=n(2),a=n(10),i=n(9),s=n(111),l=[].join,c=a!=Object,u=s("join",",");o({target:"Array",proto:!0,forced:c||!u},{join:function(t){return l.call(i(this),t===e?",":t)}})},function(e,t,r){var n=r(2),o=r(135);n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,r){var n=r(9),o=r(53),a=r(54),i=r(111),s=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=i("lastIndexOf");e.exports=c||!u?function(e){var t,r,i;if(c)return l.apply(this,arguments)||0;for(t=n(this),i=(r=a(t))-1,arguments.length>1&&(i=s(i,o(arguments[1]))),i<0&&(i=r+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:l},function(t,r,n){var o=n(2),a=n(72).map;o({target:"Array",proto:!0,forced:!n(107)("map")},{map:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}})},function(e,t,r){var n=r(2),o=r(6),a=r(76),i=r(106);n({target:"Array",stat:!0,forced:o(function(){function e(){}return!(Array.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(a(this)?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},function(t,r,n){var o=n(2),a=n(139).left,i=n(111),s=n(21),l=n(140);o({target:"Array",proto:!0,forced:!i("reduce")||!l&&s>79&&s<83},{reduce:function(t){return a(this,t,arguments.length,arguments.length>1?arguments[1]:e)}})},function(e,t,r){var n=r(24),o=r(33),a=r(10),i=r(54),s=function(e){return function(t,r,s,l){var c,u,f,d,h;if(n(r),c=o(t),u=a(c),f=i(c),d=e?f-1:0,h=e?-1:1,s<2)for(;;){if(d in u){l=u[d],d+=h;break}if(d+=h,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=h)d in u&&(l=r(l,u[d],d,c));return l}};e.exports={left:s(!1),right:s(!0)}},function(e,t,r){var n=r(11),o=r(3);e.exports="process"==n(o.process)},function(t,r,n){var o=n(2),a=n(139).right,i=n(111),s=n(21),l=n(140);o({target:"Array",proto:!0,forced:!i("reduceRight")||!l&&s>79&&s<83},{reduceRight:function(t){return a(this,t,arguments.length,arguments.length>1?arguments[1]:e)}})},function(e,t,r){var n=r(2),o=r(59),a=[].reverse,i=[1,2];n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a.call(this)}})},function(t,r,n){var o=n(2),a=n(59),i=n(76),s=n(15),l=n(52),c=n(54),u=n(9),f=n(106),d=n(27),h=n(107)("slice"),p=d("species"),m=[].slice,g=Math.max;o({target:"Array",proto:!0,forced:!h},{slice:function(t,r){var n,o,d,h=u(this),b=c(h),v=l(t,b),y=l(r===e?b:r,b);if(a(h)&&((i(n=h.constructor)&&(n===Array||a(n.prototype))||s(n)&&null===(n=n[p]))&&(n=e),n===Array||n===e))return m.call(h,v,y);for(o=new(n===e?Array:n)(g(y-v,0)),d=0;v1?arguments[1]:e)}})},function(t,r,n){var o=n(2),a=n(24),i=n(33),s=n(54),l=n(60),c=n(6),u=n(146),f=n(111),d=n(147),h=n(148),p=n(21),m=n(149),g=[],b=g.sort,v=c(function(){g.sort(e)}),y=c(function(){g.sort(null)}),_=f("sort"),C=!c(function(){var e,t,r,n,o;if(p)return p<70;if(!(d&&d>3)){if(h)return!0;if(m)return m<603;for(e="",t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)g.push({k:r+o,v:n})}for(g.sort(function(e,t){return t.v-e.v}),o=0;ol(n)?1:-1}}(t))).length,f=0;f0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},a=function(e,t,r){for(var n=e.length,o=t.length,a=0,i=0,s=[];ah)throw TypeError(p);for(u=l(v,n),m=0;my-n+r;m--)delete v[m-1]}else if(r>n)for(m=y-n;m>_;m--)b=m+r-1,(g=m+n-1)in v?v[b]=v[g]:delete v[b];for(m=0;m>8&255]},$=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},q=function(e){return j(e,23,4)},K=function(e){return j(e,52,8)},Z=function(e,t){S(e.prototype,t,{get:function(){return k(this)[t]}})},W=function(e,t,r,n){var o,a,i=C(r),s=k(e);if(i+t>s.byteLength)throw J(N);return a=k(s.buffer).bytes.slice(o=i+s.byteOffset,o+t),n?a:a.reverse()},Q=function(e,t,r,n,o,a){var i,s,l,c,u=C(r),f=k(e);if(u+t>f.byteLength)throw J(N);for(i=k(f.buffer).bytes,s=u+f.byteOffset,l=n(+o),c=0;cs;)(l=i[s++])in x||m(x,l,D[l]);a.constructor=x}T&&E(U)!==H&&T(U,H),c=new B(new x(2)),u=U.setInt8,c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||g(U,{setInt8:function(e,t){u.call(this,e,t<<24>>24)},setUint8:function(e,t){u.call(this,e,t<<24>>24)}},{unsafe:!0})}else x=function(e){v(this,x,M);var t=C(e);F(this,{bytes:P.call(new Array(t),0),byteLength:t}),d||(this.byteLength=t)},B=function(t,r,n){var o,a;if(v(this,B,L),v(t,x,L),o=k(t).byteLength,(a=y(r))<0||a>o)throw J("Wrong offset");if(a+(n=n===e?o-a:_(n))>o)throw J("Wrong length");F(this,{buffer:t,byteLength:n,byteOffset:a}),d||(this.buffer=t,this.byteLength=n,this.byteOffset=a)},d&&(Z(x,"byteLength"),Z(B,"buffer"),Z(B,"byteLength"),Z(B,"byteOffset")),g(B.prototype,{getInt8:function(e){return W(this,1,e)[0]<<24>>24},getUint8:function(e){return W(this,1,e)[0]},getInt16:function(t){var r=W(this,2,t,arguments.length>1?arguments[1]:e);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t){var r=W(this,2,t,arguments.length>1?arguments[1]:e);return r[1]<<8|r[0]},getInt32:function(t){return z(W(this,4,t,arguments.length>1?arguments[1]:e))},getUint32:function(t){return z(W(this,4,t,arguments.length>1?arguments[1]:e))>>>0},getFloat32:function(t){return G(W(this,4,t,arguments.length>1?arguments[1]:e),23)},getFloat64:function(t){return G(W(this,8,t,arguments.length>1?arguments[1]:e),52)},setInt8:function(e,t){Q(this,1,e,V,t)},setUint8:function(e,t){Q(this,1,e,V,t)},setInt16:function(t,r){Q(this,2,t,X,r,arguments.length>2?arguments[2]:e)},setUint16:function(t,r){Q(this,2,t,X,r,arguments.length>2?arguments[2]:e)},setInt32:function(t,r){Q(this,4,t,$,r,arguments.length>2?arguments[2]:e)},setUint32:function(t,r){Q(this,4,t,$,r,arguments.length>2?arguments[2]:e)},setFloat32:function(t,r){Q(this,4,t,q,r,arguments.length>2?arguments[2]:e)},setFloat64:function(t,r){Q(this,8,t,K,r,arguments.length>2?arguments[2]:e)}});O(x,M),O(B,L),t.exports={ArrayBuffer:x,DataView:B}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,r){var n=r(40);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},function(e,t){e.exports=function(e,t,r){if(e instanceof t)return e;throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}},function(t,r,n){var o=n(53),a=n(55);t.exports=function(t){var r,n;if(t===e)return 0;if((r=o(t))!==(n=a(r)))throw RangeError("Wrong length or index");return n}},function(e,t){var r=Math.abs,n=Math.pow,o=Math.floor,a=Math.log,i=Math.LN2;e.exports={pack:function(e,t,s){var l,c,u,f=new Array(s),d=8*s-t-1,h=(1<>1,m=23===t?n(2,-24)-n(2,-77):0,g=e<0||0===e&&1/e<0?1:0,b=0;for((e=r(e))!=e||e===1/0?(c=e!=e?1:0,l=h):(l=o(a(e)/i),e*(u=n(2,-l))<1&&(l--,u*=2),(e+=l+p>=1?m/u:m*n(2,1-p))*u>=2&&(l++,u/=2),l+p>=h?(c=0,l=h):l+p>=1?(c=(e*u-1)*n(2,t),l+=p):(c=e*n(2,p-1)*n(2,t),l=0));t>=8;f[b++]=255&c,c/=256,t-=8);for(l=l<0;f[b++]=255&l,l/=256,d-=8);return f[--b]|=128*g,f},unpack:function(e,t){var r,o=e.length,a=8*o-t-1,i=(1<>1,l=a-7,c=o-1,u=e[c--],f=127&u;for(u>>=7;l>0;f=256*f+e[c],c--,l-=8);for(r=f&(1<<-l)-1,f>>=-l,l+=t;l>0;r=256*r+e[c],c--,l-=8);if(0===f)f=1-s;else{if(f===i)return r?NaN:u?-(1/0):1/0;r+=n(2,t),f-=s}return(u?-1:1)*r*n(2,f-t)}}},function(e,t,r){var n=r(2),o=r(163);n({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},function(t,r,n){var o,a,i,s=n(157),l=n(5),c=n(3),u=n(16),f=n(15),d=n(32),h=n(61),p=n(25),m=n(37),g=n(40),b=n(38).f,v=n(92),y=n(94),_=n(27),C=n(34),A=c.Int8Array,E=A&&A.prototype,T=c.Uint8ClampedArray,w=T&&T.prototype,S=A&&v(A),P=E&&v(E),O=Object.prototype,R=O.isPrototypeOf,I=_("toStringTag"),k=C("TYPED_ARRAY_TAG"),F=C("TYPED_ARRAY_CONSTRUCTOR"),M=s&&!!y&&"Opera"!==h(c.opera),L=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},x=function(e){if(!f(e))return!1;var t=h(e);return d(N,t)||d(D,t)};for(o in N)(i=(a=c[o])&&a.prototype)?m(i,F,a):M=!1;for(o in D)(i=(a=c[o])&&a.prototype)&&m(i,F,a);if((!M||!u(S)||S===Function.prototype)&&(S=function(){throw TypeError("Incorrect invocation")},M))for(o in N)c[o]&&y(c[o],S);if((!M||!P||P===O)&&(P=S.prototype,M))for(o in N)c[o]&&y(c[o].prototype,P);if(M&&v(w)!==P&&y(w,P),l&&!d(P,I))for(o in L=!0,b(P,I,{get:function(){return f(this)?this[k]:e}}),N)c[o]&&m(c[o],k,o);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_CONSTRUCTOR:F,TYPED_ARRAY_TAG:L&&k,aTypedArray:function(e){if(x(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!y||R.call(S,e)))return e;throw TypeError(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r){var n,o;if(l){if(r)for(n in N)if((o=c[n])&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){}P[e]&&!r||g(P,e,r?t:M&&E[e]||t)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(l){if(y){if(r)for(n in N)if((o=c[n])&&d(o,e))try{delete o[e]}catch(a){}if(S[e]&&!r)return;try{return g(S,e,r?t:M&&S[e]||t)}catch(a){}}for(n in N)!(o=c[n])||o[e]&&!r||g(o,e,t)}},isView:function(e){if(!f(e))return!1;var t=h(e);return"DataView"===t||d(N,t)||d(D,t)},isTypedArray:x,TypedArray:S,TypedArrayPrototype:P}},function(t,r,n){var o=n(2),a=n(6),i=n(156),s=n(39),l=n(52),c=n(55),u=n(165),f=i.ArrayBuffer,d=i.DataView,h=f.prototype.slice;o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a(function(){return!new f(2).slice(1,e).byteLength})},{slice:function(t,r){var n,o,a,i,p,m,g;if(h!==e&&r===e)return h.call(s(this),t);for(n=s(this).byteLength,o=l(t,n),a=l(r===e?n:r,n),i=new(u(this,f))(c(a-o)),p=new d(this),m=new d(i),g=0;o9999?"+":"")+o(a(t),n?6:4,0)+"-"+o(e.getUTCMonth()+1,2,0)+"-"+o(e.getUTCDate(),2,0)+"T"+o(e.getUTCHours(),2,0)+":"+o(e.getUTCMinutes(),2,0)+":"+o(e.getUTCSeconds(),2,0)+"."+o(r,3,0)+"Z"}:l},function(t,r,n){var o=n(55),a=n(60),i=n(175),s=n(12),l=Math.ceil,c=function(t){return function(r,n,c){var u,f,d=a(s(r)),h=o(n),p=d.length,m=c===e?" ":a(c);return h<=p||""==m?d:((f=i.call(m,l((u=h-p)/m.length))).length>u&&(f=f.slice(0,u)),t?d+f:f+d)}};t.exports={start:c(!1),end:c(!0)}},function(e,t,r){var n=r(53),o=r(60),a=r(12);e.exports=function(e){var t=o(a(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}},function(e,t,r){var n=r(2),o=r(6),a=r(33),i=r(14);n({target:"Date",proto:!0,forced:o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=a(this),r=i(t,"number");return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},function(e,t,r){var n=r(40),o=r(178),a=r(27)("toPrimitive"),i=Date.prototype;a in i||n(i,a,o)},function(e,t,r){var n=r(39),o=r(26);e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw TypeError("Incorrect hint");return o(this,e)}},function(e,t,r){var n=r(40),o=Date.prototype,a="Invalid Date",i=o.toString,s=o.getTime;String(new Date(NaN))!=a&&n(o,"toString",function(){var e=s.call(this);return e==e?i.call(this):a})},function(e,t,r){var n=r(2),o=r(60),a=/[\w*+\-.\/@]/,i=function(e,t){for(var r=e.toString(16);r.length1?arguments[1]:e,3);r=r?r.next:n.first;)for(o(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(e){return!!v(this,e); }}),i(f.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),d&&o(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,r,n){var o=r+" Iterator",a=g(r),i=g(o);u(t,r,function(t,r){m(this,{type:o,target:t,state:a(t),kind:r,last:e})},function(){for(var t=i(this),r=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==r?{value:n.key,done:!1}:"values"==r?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=e,{value:e,done:!0})},n?"entries":"values",!n,!0),f(r)}}},function(e,t,r){var n=r(2),o=r(195),a=Math.acosh,i=Math.log,s=Math.sqrt,l=Math.LN2;n({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?i(e)+l:o(e-1+s(e-1)*s(e+1))}})},function(e,t){var r=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:r(1+e)}},function(e,t,r){var n=r(2),o=Math.asinh,a=Math.log,i=Math.sqrt;n({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function s(e){return isFinite(e=+e)&&0!=e?e<0?-s(-e):a(e+i(e*e+1)):e}})},function(e,t,r){var n=r(2),o=Math.atanh,a=Math.log;n({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:a((1+e)/(1-e))/2}})},function(e,t,r){var n=r(2),o=r(199),a=Math.abs,i=Math.pow;n({target:"Math",stat:!0},{cbrt:function(e){return o(e=+e)*i(a(e),1/3)}})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,r){var n=r(2),o=Math.floor,a=Math.log,i=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-o(a(e+.5)*i):32}})},function(e,t,r){var n=r(2),o=r(202),a=Math.cosh,i=Math.abs,s=Math.E;n({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(e){var t=o(i(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t){var r=Math.expm1,n=Math.exp;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:r},function(e,t,r){var n=r(2),o=r(202);n({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},function(e,t,r){r(2)({target:"Math",stat:!0},{fround:r(205)})},function(e,t,r){var n=r(199),o=Math.abs,a=Math.pow,i=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),c=a(2,-126);e.exports=Math.fround||function(e){var t,r,a=o(e),u=n(e);return al||r!=r?u*(1/0):u*r}},function(e,t,r){var n=r(2),o=Math.hypot,a=Math.abs,i=Math.sqrt;n({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var r,n,o=0,s=0,l=arguments.length,c=0;s0?(n=r/c)*n:r;return c===1/0?1/0:c*i(o)}})},function(e,t,r){var n=r(2),o=r(6),a=Math.imul;n({target:"Math",stat:!0,forced:o(function(){return-5!=a(4294967295,5)||2!=a.length})},{imul:function(e,t){var r=65535,n=+e,o=+t,a=r&n,i=r&o;return 0|a*i+((r&n>>>16)*i+a*(r&o>>>16)<<16>>>0)}})},function(e,t,r){var n=r(2),o=Math.log,a=Math.LOG10E;n({target:"Math",stat:!0},{log10:function(e){return o(e)*a}})},function(e,t,r){r(2)({target:"Math",stat:!0},{log1p:r(195)})},function(e,t,r){var n=r(2),o=Math.log,a=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return o(e)/a}})},function(e,t,r){r(2)({target:"Math",stat:!0},{sign:r(199)})},function(e,t,r){var n=r(2),o=r(6),a=r(202),i=Math.abs,s=Math.exp,l=Math.E;n({target:"Math",stat:!0,forced:o(function(){return-2e-17!=Math.sinh(-2e-17)})},{sinh:function(e){return i(e=+e)<1?(a(e)-a(-e))/2:(s(e-1)-s(-e-1))*(l/2)}})},function(e,t,r){var n=r(2),o=r(202),a=Math.exp;n({target:"Math",stat:!0},{tanh:function(e){var t=o(e=+e),r=o(-e);return t==1/0?1:r==1/0?-1:(t-r)/(a(e)+a(-e))}})},function(e,t,r){r(71)(Math,"Math",!0)},function(e,t,r){var n=r(2),o=Math.ceil,a=Math.floor;n({target:"Math",stat:!0},{trunc:function(e){return(e>0?a:o)(e)}})},function(e,t,r){var n,o,a,i,s=r(5),l=r(3),c=r(58),u=r(40),f=r(32),d=r(192),h=r(17),p=r(14),m=r(6),g=r(49).f,b=r(4).f,v=r(38).f,y=r(217),_=r(218).trim,C="Number",A=l.Number,E=A.prototype,T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:w(t)},w=function(e){var t,r,n,o,a,i,s,l,c=p(e,"number");if(h(c))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(43===(t=(c=_(c)).charCodeAt(0))||45===t){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(i=(a=c.slice(2)).length,s=0;so)return NaN;return parseInt(a,n)}return+c};if(c(C,!A(" 0o1")||!A("0b1")||A("+0x1"))){for(n=function(e){var t=arguments.length<1?0:A(T(e)),r=this;return r instanceof n&&m(function(){y(r)})?d(Object(t),r,n):t},o=s?g(A):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),a=0;o.length>a;a++)f(A,i=o[a])&&!f(n,i)&&v(n,i,b(A,i));n.prototype=E,E.constructor=n,u(l,C,n)}},function(e,t){var r=1..valueOf;e.exports=function(e){return r.call(e)}},function(e,t,r){var n=r(12),o=r(60),a="["+r(219)+"]",i=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),l=function(e){return function(t){var r=o(n(t));return 1&e&&(r=r.replace(i,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t){e.exports="\t\n\x0B\f\r                 \u2028\u2029\ufeff"},function(e,t,r){r(2)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,r){r(2)({target:"Number",stat:!0},{isFinite:r(222)})},function(e,t,r){var n=r(3).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},function(e,t,r){r(2)({target:"Number",stat:!0},{isInteger:r(224)})},function(e,t,r){var n=r(15),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},function(e,t,r){r(2)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){var n=r(2),o=r(224),a=Math.abs;n({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&a(e)<=9007199254740991}})},function(e,t,r){r(2)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){r(2)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){var n=r(2),o=r(230);n({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(e,t,r){var n=r(3),o=r(6),a=r(60),i=r(218).trim,s=r(219),l=n.parseFloat,c=n.Symbol,u=c&&c.iterator,f=1/l(s+"-0")!=-(1/0)||u&&!o(function(){l(Object(u))});e.exports=f?function(e){var t=i(a(e)),r=l(t);return 0===r&&"-"==t.charAt(0)?-0:r}:l},function(e,t,r){var n=r(2),o=r(232);n({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(e,t,r){var n=r(3),o=r(6),a=r(60),i=r(218).trim,s=r(219),l=n.parseInt,c=n.Symbol,u=c&&c.iterator,f=/^[+-]?0[Xx]/,d=8!==l(s+"08")||22!==l(s+"0x16")||u&&!o(function(){l(Object(u))});e.exports=d?function(e,t){var r=i(a(e));return l(r,t>>>0||(f.test(r)?16:10))}:l},function(e,t,r){var n=r(2),o=r(53),a=r(217),i=r(175),s=r(6),l=1..toFixed,c=Math.floor,u=function(e,t,r){return 0===t?r:t%2==1?u(e,t-1,r*e):u(e*e,t/2,r)},f=function(e,t,r){for(var n=-1,o=r;++n<6;)e[n]=(o+=t*e[n])%1e7,o=c(o/1e7)},d=function(e,t){for(var r=6,n=0;--r>=0;)e[r]=c((n+=e[r])/t),n=n%t*1e7},h=function(e){for(var t,r=6,n="";--r>=0;)""===n&&0!==r&&0===e[r]||(t=String(e[r]),n=""===n?t:n+i.call("0",7-t.length)+t);return n};n({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s(function(){l.call({})})},{toFixed:function(e){var t,r,n,s,l=a(this),c=o(e),p=[0,0,0,0,0,0],m="",g="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(l*u(2,69,1))-69)<0?l*u(2,-t,1):l/u(2,t,1),r*=4503599627370496,(t=52-t)>0){for(f(p,0,r),n=c;n>=7;)f(p,1e7,0),n-=7;for(f(p,u(10,n,1),0),n=t-1;n>=23;)d(p,1<<23),n-=23;d(p,1<0?m+((s=g.length)<=c?"0."+i.call("0",c-s)+g:g.slice(0,s-c)+"."+g.slice(s-c)):m+g}})},function(t,r,n){var o=n(2),a=n(6),i=n(217),s=1..toPrecision;o({target:"Number",proto:!0,forced:a(function(){return"1"!==s.call(1,e)})||!a(function(){s.call({})})},{toPrecision:function(t){return t===e?s.call(i(this)):s.call(i(this),t)}})},function(e,t,r){var n=r(2),o=r(236);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,r){var n=r(5),o=r(6),a=r(65),i=r(57),s=r(7),l=r(33),c=r(10),u=Object.assign,f=Object.defineProperty;e.exports=!u||o(function(){var e,t,r,o;return!(!n||1===u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=u({},e)[r]||a(u({},t)).join("")!=o)})?function(e,t){for(var r,o,u,f,d,h=l(e),p=arguments.length,m=1,g=i.f,b=s.f;p>m;)for(r=c(arguments[m++]),u=(o=g?a(r).concat(g(r)):a(r)).length,f=0;u>f;)d=o[f++],n&&!b.call(r,d)||(h[d]=r[d]);return h}:u},function(e,t,r){r(2)({target:"Object",stat:!0,sham:!r(5)},{create:r(63)})},function(e,t,r){var n=r(2),o=r(5),a=r(239),i=r(24),s=r(33),l=r(38);o&&n({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){l.f(s(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},function(e,t,r){var n=r(29),o=r(3),a=r(6),i=r(149);e.exports=n||!a(function(){if(!(i&&i<535)){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete o[e]}})},function(e,t,r){var n=r(2),o=r(5);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:r(64)})},function(e,t,r){var n=r(2),o=r(5);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r(38).f})},function(e,t,r){var n=r(2),o=r(5),a=r(239),i=r(24),s=r(33),l=r(38);o&&n({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(s(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},function(e,t,r){var n=r(2),o=r(244).entries;n({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,r){var n=r(5),o=r(65),a=r(9),i=r(7).f,s=function(e){return function(t){for(var r,s=a(t),l=o(s),c=l.length,u=0,f=[];c>u;)r=l[u++],n&&!i.call(s,r)||f.push(e?[r,s[r]]:s[r]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,r){var n=r(2),o=r(191),a=r(6),i=r(15),s=r(190).onFreeze,l=Object.freeze;n({target:"Object",stat:!0,forced:a(function(){l(1)}),sham:!o},{freeze:function(e){return l&&i(e)?l(s(e)):e}})},function(e,t,r){var n=r(2),o=r(97),a=r(106);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,function(e,r){a(t,e,r)},{AS_ENTRIES:!0}),t}})},function(e,t,r){var n=r(2),o=r(6),a=r(9),i=r(4).f,s=r(5),l=o(function(){i(1)});n({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return i(a(e),t)}})},function(t,r,n){var o=n(2),a=n(5),i=n(48),s=n(9),l=n(4),c=n(106);o({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){for(var r,n,o=s(t),a=l.f,u=i(o),f={},d=0;u.length>d;)(n=a(o,r=u[d++]))!==e&&c(f,r,n);return f}})},function(e,t,r){var n=r(2),o=r(6),a=r(67).f;n({target:"Object",stat:!0,forced:o(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:a})},function(e,t,r){var n=r(2),o=r(6),a=r(33),i=r(92),s=r(93);n({target:"Object",stat:!0,forced:o(function(){i(1)}),sham:!s},{getPrototypeOf:function(e){return i(a(e))}})},function(e,t,r){r(2)({target:"Object",stat:!0},{hasOwn:r(32)})},function(e,t,r){r(2)({target:"Object",stat:!0},{is:r(253)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,r){var n=r(2),o=r(6),a=r(15),i=Object.isExtensible;n({target:"Object",stat:!0,forced:o(function(){i(1)})},{isExtensible:function(e){return!!a(e)&&(!i||i(e))}})},function(e,t,r){var n=r(2),o=r(6),a=r(15),i=Object.isFrozen;n({target:"Object",stat:!0,forced:o(function(){i(1)})},{isFrozen:function(e){return!a(e)||!!i&&i(e)}})},function(e,t,r){var n=r(2),o=r(6),a=r(15),i=Object.isSealed;n({target:"Object",stat:!0,forced:o(function(){i(1)})},{isSealed:function(e){return!a(e)||!!i&&i(e)}})},function(e,t,r){var n=r(2),o=r(33),a=r(65);n({target:"Object",stat:!0,forced:r(6)(function(){a(1)})},{keys:function(e){return a(o(e))}})},function(e,t,r){var n=r(2),o=r(5),a=r(239),i=r(33),s=r(13),l=r(92),c=r(4).f;o&&n({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,r=i(this),n=s(e);do if(t=c(r,n))return t.get;while(r=l(r))}})},function(e,t,r){var n=r(2),o=r(5),a=r(239),i=r(33),s=r(13),l=r(92),c=r(4).f;o&&n({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,r=i(this),n=s(e);do if(t=c(r,n))return t.set;while(r=l(r))}})},function(e,t,r){var n=r(2),o=r(15),a=r(190).onFreeze,i=r(191),s=r(6),l=Object.preventExtensions;n({target:"Object",stat:!0,forced:s(function(){l(1)}),sham:!i},{preventExtensions:function(e){return l&&o(e)?l(a(e)):e}})},function(e,t,r){var n=r(2),o=r(15),a=r(190).onFreeze,i=r(191),s=r(6),l=Object.seal;n({target:"Object",stat:!0,forced:s(function(){l(1)}),sham:!i},{seal:function(e){return l&&o(e)?l(a(e)):e}})},function(e,t,r){r(2)({target:"Object",stat:!0},{setPrototypeOf:r(94)})},function(e,t,r){var n=r(62),o=r(40),a=r(264);n||o(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,r){var n=r(62),o=r(61);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,r){var n=r(2),o=r(244).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,r){var n=r(2),o=r(230);n({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(e,t,r){var n=r(2),o=r(232);n({global:!0,forced:parseInt!=o},{parseInt:o})},function(t,r,n){var o,a,i,s,l=n(2),c=n(29),u=n(3),f=n(18),d=n(269),h=n(40),p=n(158),m=n(94),g=n(71),b=n(151),v=n(24),y=n(16),_=n(15),C=n(159),A=n(41),E=n(97),T=n(125),w=n(165),S=n(270).set,P=n(272),O=n(275),R=n(277),I=n(276),k=n(278),F=n(42),M=n(58),L=n(27),N=n(279),D=n(140),x=n(21),B=L("species"),U="Promise",H=F.get,J=F.set,j=F.getterFor(U),G=d&&d.prototype,V=d,X=G,$=u.TypeError,z=u.document,q=u.process,K=I.f,Z=K,W=!!(z&&z.createEvent&&u.dispatchEvent),Q=y(u.PromiseRejectionEvent),Y="unhandledrejection",ee=!1,te=M(U,function(){var e,t,r=A(V),n=r!==String(V);return!n&&66===x||!(!c||X["finally"])||!(x>=51&&/native code/.test(r))&&(t=function(e){e(function(){},function(){})},((e=new V(function(e){e(1)})).constructor={})[B]=t,!(ee=e.then(function(){})instanceof t)||!n&&N&&!Q)}),re=te||!T(function(e){V.all(e)["catch"](function(){})}),ne=function(e){var t;return!(!_(e)||!y(t=e.then))&&t},oe=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;P(function(){for(var n,o,a,i,s,l,c,u,f=e.value,d=1==e.state,h=0;r.length>h;){n=r[h++],o=d?n.ok:n.fail,a=n.resolve,i=n.reject,s=n.domain;try{o?(d||(2===e.rejection&&le(e),e.rejection=1),!0===o?l=f:(s&&s.enter(),l=o(f),s&&(s.exit(),u=!0)),l===n.promise?i($("Promise-chain cycle")):(c=ne(l))?c.call(l,a,i):a(l)):i(f)}catch(p){s&&!u&&s.exit(),i(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ie(e)})}},ae=function(e,t,r){var n,o;W?((n=z.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!Q&&(o=u["on"+e])?o(n):e===Y&&R("Unhandled promise rejection",r)},ie=function(e){S.call(u,function(){var t,r=e.facade,n=e.value;if(se(e)&&(t=k(function(){D?q.emit("unhandledRejection",n,r):ae(Y,r,n)}),e.rejection=D||se(e)?2:1,t.error))throw t.value})},se=function(e){return 1!==e.rejection&&!e.parent},le=function(e){S.call(u,function(){var t=e.facade;D?q.emit("rejectionHandled",t):ae("rejectionhandled",t,e.value)})},ce=function(e,t,r){return function(n){e(t,n,r)}},ue=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,oe(e,!0))},fe=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw $("Promise can't be resolved itself");var n=ne(t);n?P(function(){var r={done:!1};try{n.call(t,ce(fe,r,e),ce(ue,r,e))}catch(o){ue(r,o,e)}}):(e.value=t,e.state=1,oe(e,!1))}catch(o){ue({done:!1},o,e)}}};if(te&&(V=function(e){C(this,V,U),v(e),o.call(this);var t=H(this);try{e(ce(fe,t),ce(ue,t))}catch(r){ue(t,r)}},(o=function(t){J(this,{type:U,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:e})}).prototype=p(X=V.prototype,{then:function(t,r){var n=j(this),o=K(w(this,V));return o.ok=!y(t)||t,o.fail=y(r)&&r,o.domain=D?q.domain:e,n.parent=!0,n.reactions.push(o),0!=n.state&&oe(n,!1),o.promise},"catch":function(t){return this.then(e,t)}}),a=function(){var e=new o,t=H(e);this.promise=e,this.resolve=ce(fe,t),this.reject=ce(ue,t)},I.f=K=function(e){return e===V||e===i?new a(e):Z(e)},!c&&y(d)&&G!==Object.prototype)){s=G.then,ee||(h(G,"then",function(e,t){var r=this;return new V(function(e,t){s.call(r,e,t)}).then(e,t)},{unsafe:!0}),h(G,"catch",X["catch"],{unsafe:!0}));try{delete G.constructor}catch(de){}m&&m(G,X)}l({global:!0,wrap:!0,forced:te},{Promise:V}),g(V,U,!1,!0),b(U),i=f(U),l({target:U,stat:!0,forced:te},{reject:function(t){var r=K(this);return r.reject.call(e,t),r.promise}}),l({target:U,stat:!0,forced:c||te},{resolve:function(e){return O(c&&this===i?V:this,e)}}),l({target:U,stat:!0,forced:re},{all:function(t){var r=this,n=K(r),o=n.resolve,a=n.reject,i=k(function(){var n=v(r.resolve),i=[],s=0,l=1;E(t,function(t){var c=s++,u=!1;i.push(e),l++,n.call(r,t).then(function(e){u||(u=!0,i[c]=e,--l||o(i))},a)}),--l||o(i)});return i.error&&a(i.value),n.promise},race:function(e){var t=this,r=K(t),n=r.reject,o=k(function(){var o=v(t.resolve);E(e,function(e){o.call(t,e).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}})},function(e,t,r){var n=r(3);e.exports=n.Promise},function(t,r,n){var o,a,i,s,l,c,u,f,d=n(3),h=n(16),p=n(6),m=n(73),g=n(66),b=n(36),v=n(271),y=n(140),_=d.setImmediate,C=d.clearImmediate,A=d.process,E=d.MessageChannel,T=d.Dispatch,w=0,S={};try{o=d.location}catch(P){}l=function(e){if(S.hasOwnProperty(e)){var t=S[e];delete S[e],t()}},c=function(e){return function(){l(e)}},u=function(e){l(e.data)},f=function(e){d.postMessage(String(e),o.protocol+"//"+o.host)},_&&C||(_=function(t){for(var r=[],n=arguments.length,o=1;n>o;)r.push(arguments[o++]);return S[++w]=function(){(h(t)?t:Function(t)).apply(e,r)},a(w),w},C=function(e){delete S[e]},y?a=function(e){A.nextTick(c(e))}:T&&T.now?a=function(e){T.now(c(e))}:E&&!v?(s=(i=new E).port2,i.port1.onmessage=u,a=m(s.postMessage,s,1)):d.addEventListener&&h(d.postMessage)&&!d.importScripts&&o&&"file:"!==o.protocol&&!p(f)?(a=f,d.addEventListener("message",u,!1)):a="onreadystatechange"in b("script")?function(e){g.appendChild(b("script")).onreadystatechange=function(){g.removeChild(this),l(e)}}:function(e){setTimeout(c(e),0)}),t.exports={set:_,clear:C}},function(e,t,r){var n=r(22);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(t,r,n){var o,a,i,s,l,c,u,f,d=n(3),h=n(4).f,p=n(270).set,m=n(271),g=n(273),b=n(274),v=n(140),y=d.MutationObserver||d.WebKitMutationObserver,_=d.document,C=d.process,A=d.Promise,E=h(d,"queueMicrotask"),T=E&&E.value;T||(o=function(){var t,r;for(v&&(t=C.domain)&&t.exit();a;){r=a.fn,a=a.next;try{r()}catch(n){throw a?s():i=e,n}}i=e,t&&t.enter()},m||v||b||!y||!_?!g&&A&&A.resolve?((u=A.resolve(e)).constructor=A,f=u.then,s=function(){f.call(u,o)}):s=v?function(){C.nextTick(o)}:function(){p.call(d,o)}:(l=!0,c=_.createTextNode(""),new y(o).observe(c,{characterData:!0}),s=function(){c.data=l=!l})),t.exports=T||function(t){var r={fn:t,next:e};i&&(i.next=r),a||(a=r,s()),i=r}},function(t,r,n){var o=n(22),a=n(3);t.exports=/ipad|iphone|ipod/i.test(o)&&a.Pebble!==e},function(e,t,r){var n=r(22);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,r){var n=r(39),o=r(15),a=r(276);e.exports=function(e,t){var r;return n(e),o(t)&&t.constructor===e?t:((0,(r=a.f(e)).resolve)(t),r.promise)}},function(t,r,n){var o=n(24),a=function(t){var r,n;this.promise=new t(function(t,o){if(r!==e||n!==e)throw TypeError("Bad Promise constructor");r=t,n=o}),this.resolve=o(r),this.reject=o(n)};t.exports.f=function(e){return new a(e)}},function(e,t,r){var n=r(3);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t){e.exports="object"==typeof window},function(t,r,n){var o=n(2),a=n(24),i=n(276),s=n(278),l=n(97);o({target:"Promise",stat:!0},{allSettled:function(t){var r=this,n=i.f(r),o=n.resolve,c=n.reject,u=s(function(){var n=a(r.resolve),i=[],s=0,c=1;l(t,function(t){var a=s++,l=!1;i.push(e),c++,n.call(r,t).then(function(e){l||(l=!0,i[a]={status:"fulfilled",value:e},--c||o(i))},function(e){l||(l=!0,i[a]={status:"rejected",reason:e},--c||o(i))})}),--c||o(i)});return u.error&&c(u.value),n.promise}})},function(t,r,n){var o=n(2),a=n(24),i=n(18),s=n(276),l=n(278),c=n(97),u="No one promise resolved";o({target:"Promise",stat:!0},{any:function(t){var r=this,n=s.f(r),o=n.resolve,f=n.reject,d=l(function(){var n=a(r.resolve),s=[],l=0,d=1,h=!1;c(t,function(t){var a=l++,c=!1;s.push(e),d++,n.call(r,t).then(function(e){c||h||(h=!0,o(e))},function(e){c||h||(c=!0,s[a]=e,--d||f(new(i("AggregateError"))(s,u)))})}),--d||f(new(i("AggregateError"))(s,u))});return d.error&&f(d.value),n.promise}})},function(e,t,r){var n,o=r(2),a=r(29),i=r(269),s=r(6),l=r(18),c=r(16),u=r(165),f=r(275),d=r(40);o({target:"Promise",proto:!0,real:!0,forced:!!i&&s(function(){i.prototype["finally"].call({then:function(){}},function(){})})},{"finally":function(e){var t=u(this,l("Promise")),r=c(e);return this.then(r?function(r){return f(t,e()).then(function(){return r})}:e,r?function(r){return f(t,e()).then(function(){throw r})}:e)}}),!a&&c(i)&&(n=l("Promise").prototype["finally"],i.prototype["finally"]!==n&&d(i.prototype,"finally",n,{unsafe:!0}))},function(e,t,r){var n=r(2),o=r(18),a=r(24),i=r(39),s=r(6),l=o("Reflect","apply"),c=Function.apply;n({target:"Reflect",stat:!0,forced:!s(function(){l(function(){})})},{apply:function(e,t,r){return a(e),i(r),l?l(e,t,r):c.call(e,t,r)}})},function(e,t,r){var n=r(2),o=r(18),a=r(166),i=r(39),s=r(15),l=r(63),c=r(182),u=r(6),f=o("Reflect","construct"),d=u(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),h=!u(function(){f(function(){})}),p=d||h;n({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){var r,n,o,u,p;if(a(e),i(t),r=arguments.length<3?e:a(arguments[2]),h&&!d)return f(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}return(n=[null]).push.apply(n,t),new(c.apply(e,n))}return u=l(s(o=r.prototype)?o:Object.prototype),p=Function.apply.call(e,u,t),s(p)?p:u}})},function(e,t,r){var n=r(2),o=r(5),a=r(39),i=r(13),s=r(38);n({target:"Reflect",stat:!0,forced:r(6)(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})}),sham:!o},{defineProperty:function(e,t,r){a(e);var n=i(t);a(r);try{return s.f(e,n,r),!0}catch(o){return!1}}})},function(e,t,r){var n=r(2),o=r(39),a=r(4).f;n({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var r=a(o(e),t);return!(r&&!r.configurable)&&delete e[t]}})},function(t,r,n){var o=n(2),a=n(15),i=n(39),s=n(288),l=n(4),c=n(92);o({target:"Reflect",stat:!0},{get:function u(t,r){var n,o,f=arguments.length<3?t:arguments[2];return i(t)===f?t[r]:(n=l.f(t,r))?s(n)?n.value:n.get===e?e:n.get.call(f):a(o=c(t))?u(o,r,f):e}})},function(t,r,n){var o=n(32);t.exports=function(t){return t!==e&&(o(t,"value")||o(t,"writable"))}},function(e,t,r){var n=r(2),o=r(5),a=r(39),i=r(4);n({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return i.f(a(e),t)}})},function(e,t,r){var n=r(2),o=r(39),a=r(92);n({target:"Reflect",stat:!0,sham:!r(93)},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,r){r(2)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,r){var n=r(2),o=r(39),a=Object.isExtensible;n({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),!a||a(e)}})},function(e,t,r){r(2)({target:"Reflect",stat:!0},{ownKeys:r(48)})},function(e,t,r){var n=r(2),o=r(18),a=r(39);n({target:"Reflect",stat:!0,sham:!r(191)},{preventExtensions:function(e){a(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(r){return!1}}})},function(t,r,n){var o=n(2),a=n(39),i=n(15),s=n(288),l=n(6),c=n(38),u=n(4),f=n(92),d=n(8);o({target:"Reflect",stat:!0,forced:l(function(){var e=function(){},t=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)})},{set:function h(t,r,n){var o,l,p,m=arguments.length<4?t:arguments[3],g=u.f(a(t),r);if(!g){if(i(l=f(t)))return h(l,r,n,m);g=d(0)}if(s(g)){if(!1===g.writable||!i(m))return!1;if(o=u.f(m,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,c.f(m,r,o)}else c.f(m,r,d(0,n))}else{if((p=g.set)===e)return!1;p.call(m,n)}return!0}})},function(e,t,r){var n=r(2),o=r(39),a=r(95),i=r(94);i&&n({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),a(t);try{return i(e,t),!0}catch(r){return!1}}})},function(e,t,r){var n=r(2),o=r(3),a=r(71);n({global:!0},{Reflect:{}}),a(o.Reflect,"Reflect",!0)},function(t,r,n){var o,a,i,s,l=n(5),c=n(3),u=n(58),f=n(192),d=n(37),h=n(38).f,p=n(49).f,m=n(299),g=n(60),b=n(300),v=n(301),y=n(40),_=n(6),C=n(32),A=n(42).enforce,E=n(151),T=n(27),w=n(302),S=n(303),P=T("match"),O=c.RegExp,R=O.prototype,I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,k=/a/g,F=/a/g,M=new O(k)!==k,L=v.UNSUPPORTED_Y;if(u("RegExp",l&&(!M||L||w||S||_(function(){return F[P]=!1,O(k)!=k||O(F)==F||"/a/i"!=O(k,"i")})))){for((o=function(t,r){var n,a,i,s,l,c,u=this instanceof o,h=m(t),p=r===e,v=[],y=t;if(!u&&h&&p&&t.constructor===o)return t;if((h||t instanceof o)&&(t=t.source,p&&(r="flags"in y?y.flags:b.call(y))),t=t===e?"":g(t),r=r===e?"":g(r),y=t,w&&"dotAll"in k&&(a=!!r&&r.indexOf("s")>-1)&&(r=r.replace(/s/g,"")),n=r,L&&"sticky"in k&&(i=!!r&&r.indexOf("y")>-1)&&(r=r.replace(/y/g,"")),S&&(t=(s=function(e){for(var t,r=e.length,n=0,o="",a=[],i={},s=!1,l=!1,c=0,u="";n<=r;n++){if("\\"===(t=e.charAt(n)))t+=e.charAt(++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:I.test(e.slice(n+1))&&(n+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===u||C(i,u))throw new SyntaxError("Invalid capture group name");i[u]=!0,a.push([u,c]),l=!1,u="";continue}l?u+=t:o+=t}return[o,a]}(t))[0],v=s[1]),l=f(O(t,r),u?this:R,o),(a||i||v.length)&&(c=A(l),a&&(c.dotAll=!0,c.raw=o(function(e){for(var t,r=e.length,n=0,o="",a=!1;n<=r;n++)"\\"!==(t=e.charAt(n))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+e.charAt(++n);return o}(t),n)),i&&(c.sticky=!0),v.length&&(c.groups=v)),t!==y)try{d(l,"source",""===y?"(?:)":y)}catch(_){}return l},a=function(e){e in o||h(o,e,{configurable:!0,get:function(){return O[e]},set:function(t){O[e]=t}})},i=p(O),s=0);i.length>s;)a(i[s++]);R.constructor=o,o.prototype=R,y(c,"RegExp",o)}E("RegExp")},function(t,r,n){var o=n(15),a=n(11),i=n(27)("match");t.exports=function(t){var r;return o(t)&&((r=t[i])!==e?!!r:"RegExp"==a(t))}},function(e,t,r){var n=r(39);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(6),o=r(3).RegExp;t.UNSUPPORTED_Y=n(function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=n(function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},function(e,t,r){var n=r(6),o=r(3).RegExp;e.exports=n(function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})},function(e,t,r){var n=r(6),o=r(3).RegExp;e.exports=n(function(){var e=o("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})},function(t,r,n){var o=n(5),a=n(302),i=n(38).f,s=n(42).get,l=RegExp.prototype;o&&a&&i(l,"dotAll",{configurable:!0,get:function(){if(this===l)return e;if(this instanceof RegExp)return!!s(this).dotAll;throw TypeError("Incompatible receiver, RegExp required")}})},function(e,t,r){var n=r(2),o=r(306);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,r,n){var o,a,i=n(60),s=n(300),l=n(301),c=n(28),u=n(63),f=n(42).get,d=n(302),h=n(303),p=/t/.exec,m=c("native-string-replace","".replace),g=p,b=(a=/b*/g,p.call(o=/a/,"a"),p.call(a,"a"),0!==o.lastIndex||0!==a.lastIndex),v=l.UNSUPPORTED_Y||l.BROKEN_CARET,y=/()??/.exec("")[1]!==e;(b||y||v||d||h)&&(g=function(t){var r,n,o,a,l,c,d,h,_,C,A,E,T,w=this,S=f(w),P=i(t),O=S.raw;if(O)return O.lastIndex=w.lastIndex,r=g.call(O,P),w.lastIndex=O.lastIndex,r;if(h=S.groups,_=v&&w.sticky,C=s.call(w),A=w.source,E=0,T=P,_&&(-1===(C=C.replace("y","")).indexOf("g")&&(C+="g"),T=P.slice(w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==P.charAt(w.lastIndex-1))&&(A="(?: "+A+")",T=" "+T,E++),n=new RegExp("^(?:"+A+")",C)),y&&(n=new RegExp("^"+A+"$(?!\\s)",C)),b&&(o=w.lastIndex),a=p.call(_?n:w,T),_?a?(a.input=a.input.slice(E),a[0]=a[0].slice(E),a.index=w.lastIndex,w.lastIndex+=a[0].length):w.lastIndex=0:b&&a&&(w.lastIndex=w.global?a.index+a[0].length:o),y&&a&&a.length>1&&m.call(a[0],n,function(){for(l=1;l=0?o:n+o;return l<0||l>=n?e:r.charAt(l)}})},function(e,t,r){var n=r(2),o=r(314).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(t,r,n){var o=n(53),a=n(60),i=n(12),s=function(t){return function(r,n){var s,l,c=a(i(r)),u=o(n),f=c.length;return u<0||u>=f?t?"":e:(s=c.charCodeAt(u))<55296||s>56319||u+1===f||(l=c.charCodeAt(u+1))<56320||l>57343?t?c.charAt(u):s:t?c.slice(u,u+2):l-56320+(s-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,r,n){var o,a=n(2),i=n(4).f,s=n(55),l=n(60),c=n(316),u=n(12),f=n(317),d=n(29),h="".endsWith,p=Math.min,m=f("endsWith");a({target:"String",proto:!0,forced:!(!d&&!m&&(o=i(String.prototype,"endsWith"),o&&!o.writable)||m)},{endsWith:function(t){var r,n,o,a,i=l(u(this));return c(t),n=i.length,o=(r=arguments.length>1?arguments[1]:e)===e?n:p(s(r),n),a=l(t),h?h.call(i,a,o):i.slice(o-a.length,o)===a}})},function(e,t,r){var n=r(299);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){ var n=r(27)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(o){}}return!1}},function(e,t,r){var n=r(2),o=r(52),a=String.fromCharCode,i=String.fromCodePoint;n({target:"String",stat:!0,forced:!!i&&1!=i.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(t,r,n){var o=n(2),a=n(316),i=n(12),s=n(60);o({target:"String",proto:!0,forced:!n(317)("includes")},{includes:function(t){return!!~s(i(this)).indexOf(s(a(t)),arguments.length>1?arguments[1]:e)}})},function(t,r,n){var o=n(314).charAt,a=n(60),i=n(42),s=n(130),l="String Iterator",c=i.set,u=i.getterFor(l);s(String,"String",function(e){c(this,{type:l,string:a(e),index:0})},function(){var t,r=u(this),n=r.string,a=r.index;return a>=n.length?{value:e,done:!0}:(t=o(n,a),r.index+=t.length,{value:t,done:!1})})},function(t,r,n){var o=n(322),a=n(39),i=n(55),s=n(60),l=n(12),c=n(23),u=n(323),f=n(324);o("match",function(t,r,n){return[function(r){var n=l(this),o=r==e?e:c(r,t);return o?o.call(r,n):new RegExp(r)[t](s(n))},function(e){var t,o,l,c,d,h=a(this),p=s(e),m=n(r,h,p);if(m.done)return m.value;if(!h.global)return f(h,p);for(t=h.unicode,h.lastIndex=0,o=[],l=0;null!==(c=f(h,p));)d=s(c[0]),o[l]=d,""===d&&(h.lastIndex=u(p,i(h.lastIndex),t)),l++;return 0===l?null:o}]})},function(e,t,r){var n,o,a,i,s,l,c;r(305),n=r(40),o=r(306),a=r(6),i=r(27),s=r(37),l=i("species"),c=RegExp.prototype,e.exports=function(e,t,r,u){var f,d,h=i(e),p=!a(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),m=p&&!a(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t});p&&m&&!r||(f=/./[h],d=t(h,""[e],function(e,t,r,n,a){var i=t.exec;return i===o||i===c.exec?p&&!a?{done:!0,value:f.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),n(String.prototype,e,d[0]),n(c,h,d[1])),u&&s(c[h],"sham",!0)}},function(e,t,r){var n=r(314).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},function(e,t,r){var n=r(39),o=r(16),a=r(11),i=r(306);e.exports=function(e,t){var r,s=e.exec;if(o(s))return null!==(r=s.call(e,t))&&n(r),r;if("RegExp"===a(e))return i.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")}},function(t,r,n){var o=n(2),a=n(131),i=n(12),s=n(55),l=n(60),c=n(39),u=n(11),f=n(299),d=n(300),h=n(23),p=n(40),m=n(6),g=n(27),b=n(165),v=n(323),y=n(324),_=n(42),C=n(29),A=g("matchAll"),E="RegExp String Iterator",T=_.set,w=_.getterFor(E),S=RegExp.prototype,P="".matchAll,O=!!P&&!m(function(){"a".matchAll(/./)}),R=a(function(e,t,r,n){T(this,{type:E,regexp:e,string:t,global:r,unicode:n,done:!1})},"RegExp String",function(){var t,r,n,o=w(this);return o.done?{value:e,done:!0}:null===(n=y(t=o.regexp,r=o.string))?{value:e,done:o.done=!0}:o.global?(""===l(n[0])&&(t.lastIndex=v(r,s(t.lastIndex),o.unicode)),{value:n,done:!1}):(o.done=!0,{value:n,done:!1})}),I=function(t){var r,n,o,a,i=c(this),u=l(t),f=b(i,RegExp),h=i.flags;return h===e&&i instanceof RegExp&&!("flags"in S)&&(h=d.call(i)),r=h===e?"":l(h),n=new f(f===RegExp?i.source:i,r),o=!!~r.indexOf("g"),a=!!~r.indexOf("u"),n.lastIndex=s(i.lastIndex),new R(n,u,o,a)};o({target:"String",proto:!0,forced:O},{matchAll:function(t){var r,n,o,a=i(this);if(null!=t){if(f(t)&&!~l(i("flags"in S?t.flags:d.call(t))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(O)return P.apply(a,arguments);if((n=h(t,A))===e&&C&&"RegExp"==u(t)&&(n=I),n)return n.call(t,a)}else if(O)return P.apply(a,arguments);return r=l(a),o=new RegExp(t,"g"),C?I.call(o,r):o[A](r)}}),C||A in S||p(S,A,I)},function(t,r,n){var o=n(2),a=n(174).end;o({target:"String",proto:!0,forced:n(327)},{padEnd:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}})},function(e,t,r){var n=r(22);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w.\/]+)?(?: Mobile\/\w+)? Safari\//.test(n)},function(t,r,n){var o=n(2),a=n(174).start;o({target:"String",proto:!0,forced:n(327)},{padStart:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}})},function(e,t,r){var n=r(2),o=r(9),a=r(33),i=r(60),s=r(54),l=Array.prototype,c=l.push,u=l.join;n({target:"String",stat:!0},{raw:function(e){for(var t=o(a(e).raw),r=s(t),n=arguments.length,l=[],f=0;r>f;){if(c.call(l,i(t[f++])),f===r)return u.call(l,"");f=E&&(A+=L.slice(E,S)+k,E=S+w.length)}return A+L.slice(E)}]},!!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})||!y||_)},function(t,r,n){var o=n(33),a=Math.floor,i="".replace,s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,r,n,c,u,f){var d=n+t.length,h=c.length,p=l;return u!==e&&(u=o(u),p=s),i.call(f,p,function(o,i){var s,l,f;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(d);case"<":s=u[i.slice(1,-1)];break;default:if(0==(l=+i))return o;if(l>h)return 0===(f=a(l/10))?o:f<=h?c[f-1]===e?i.charAt(1):c[f-1]+i.charAt(1):o;s=c[l-1]}return s===e?"":s})}},function(t,r,n){var o=n(2),a=n(12),i=n(16),s=n(299),l=n(60),c=n(23),u=n(300),f=n(332),d=n(27),h=n(29),p=d("replace"),m=RegExp.prototype,g=Math.max,b=function(e,t,r){return r>e.length?-1:""===t?r:e.indexOf(t,r)};o({target:"String",proto:!0},{replaceAll:function(t,r){var n,o,d,v,y,_,C,A,E=a(this),T=0,w=0,S="";if(null!=t){if((n=s(t))&&!~l(a("flags"in m?t.flags:u.call(t))).indexOf("g"))throw TypeError("`.replaceAll` does not allow non-global regexes");if(o=c(t,p))return o.call(t,E,r);if(h&&n)return l(E).replace(t,r)}for(d=l(E),v=l(t),(y=i(r))||(r=l(r)),C=g(1,_=v.length),T=b(d,v,0);-1!==T;)A=y?l(r(v,T,d)):f(v,d,T,[],e,r),S+=d.slice(w,T)+A,w=T+_,T=b(d,v,T+C);return w1||"".split(/.?/).length?function(t,n){var o,i,l,c,u,d,h=f(s(this)),m=n===e?_:n>>>0;if(0===m)return[];if(t===e)return[h];if(!a(t))return r.call(h,t,m);for(o=[],i=0,l=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(c=p.call(l,h))&&!((u=l.lastIndex)>i&&(o.push(h.slice(i,c.index)),c.length>1&&c.index=m));)l.lastIndex===c.index&&l.lastIndex++;return i===h.length?!d&&l.test("")||o.push(""):o.push(h.slice(i)),o.length>m?o.slice(0,m):o}:"0".split(e,0).length?function(t,n){return t===e&&0===n?[]:r.call(this,t,n)}:r,[function(r,n){var a=s(this),i=r==e?e:d(r,t);return i?i.call(r,a,n):o.call(f(a),r,n)},function(t,a){var s,d,p,m,g,v,C,A,E,T,w=i(this),S=f(t),P=n(o,w,S,a,o!==r);if(P.done)return P.value;if(s=l(w,RegExp),d=w.unicode,p=new s(b?"^(?:"+w.source+")":w,(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+(b?"g":"y")),0===(m=a===e?_:a>>>0))return[];if(0===S.length)return null===h(p,S)?[S]:[];for(g=0,v=0,C=[];v1?arguments[1]:e,o.length)),n=l(t),h?h.call(o,n,r):o.slice(r,r+n.length)===n}})},function(t,r,n){var o=n(2),a=n(12),i=n(53),s=n(60),l="".slice,c=Math.max,u=Math.min;o({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,r){var n,o,f=s(a(this)),d=f.length,h=i(t);return h===1/0&&(h=0),h<0&&(h=c(d+h,0)),(n=r===e?d:i(r))<=0||n===1/0||h>=(o=u(h+n,d))?"":l.call(f,h,o)}})},function(e,t,r){var n=r(2),o=r(218).trim;n({target:"String",proto:!0,forced:r(339)("trim")},{trim:function(){return o(this)}})},function(e,t,r){var n=r(46).PROPER,o=r(6),a=r(219);e.exports=function(e){return o(function(){return!!a[e]()||"​…᠎"!=="​…᠎"[e]()||n&&a[e].name!==e})}},function(e,t,r){var n=r(2),o=r(218).end,a=r(339)("trimEnd"),i=a?function(){return o(this)}:"".trimEnd;n({target:"String",proto:!0,name:"trimEnd",forced:a},{trimEnd:i,trimRight:i})},function(e,t,r){var n=r(2),o=r(218).start,a=r(339)("trimStart"),i=a?function(){return o(this)}:"".trimStart;n({target:"String",proto:!0,name:"trimStart",forced:a},{trimStart:i,trimLeft:i})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},function(e,t,r){var n=r(12),o=r(60),a=/"/g;e.exports=function(e,t,r,i){var s=o(n(e)),l="<"+t;return""!==r&&(l+=" "+r+'="'+o(i).replace(a,""")+'"'),l+">"+s+""}},function(e,t,r){var n=r(6);e.exports=function(e){return n(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("big")},{big:function(){return o(this,"big","","")}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("blink")},{blink:function(){return o(this,"blink","","")}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("bold")},{bold:function(){return o(this,"b","","")}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("italics")},{italics:function(){return o(this,"i","","")}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("small")},{small:function(){return o(this,"small","","")}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("strike")},{strike:function(){return o(this,"strike","","")}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("sub")},{sub:function(){return o(this,"sub","","")}})},function(e,t,r){var n=r(2),o=r(343);n({target:"String",proto:!0,forced:r(344)("sup")},{sup:function(){return o(this,"sup","","")}})},function(e,t,r){r(358)("Float32",function(e){return function(t,r,n){return e(this,t,r,n)}})},function(t,r,n){var o=n(2),a=n(3),i=n(5),s=n(359),l=n(163),c=n(156),u=n(159),f=n(8),d=n(37),h=n(224),p=n(55),m=n(160),g=n(360),b=n(13),v=n(32),y=n(61),_=n(15),C=n(17),A=n(63),E=n(94),T=n(49).f,w=n(362),S=n(72).forEach,P=n(151),O=n(38),R=n(4),I=n(42),k=n(192),F=I.get,M=I.set,L=O.f,N=R.f,D=Math.round,x=a.RangeError,B=c.ArrayBuffer,U=c.DataView,H=l.NATIVE_ARRAY_BUFFER_VIEWS,J=l.TYPED_ARRAY_CONSTRUCTOR,j=l.TYPED_ARRAY_TAG,G=l.TypedArray,V=l.TypedArrayPrototype,X=l.aTypedArrayConstructor,$=l.isTypedArray,z="BYTES_PER_ELEMENT",q="Wrong length",K=function(e,t){for(var r=0,n=t.length,o=new(X(e))(n);n>r;)o[r]=t[r++];return o},Z=function(e,t){L(e,t,{get:function(){return F(this)[t]}})},W=function(e){var t;return e instanceof B||"ArrayBuffer"==(t=y(e))||"SharedArrayBuffer"==t},Q=function(e,t){return $(e)&&!C(t)&&t in e&&h(+t)&&t>=0},Y=function(e,t){return t=b(t),Q(e,t)?f(2,e[t]):N(e,t)},ee=function(e,t,r){return t=b(t),!(Q(e,t)&&_(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?L(e,t,r):(e[t]=r.value,e)};i?(H||(R.f=Y,O.f=ee,Z(V,"buffer"),Z(V,"byteOffset"),Z(V,"byteLength"),Z(V,"length")),o({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:Y,defineProperty:ee}),t.exports=function(t,r,n){var i=t.match(/\d+$/)[0]/8,l=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,h=a[l],b=h,v=b&&b.prototype,y={},C=function(e,t){L(e,t,{get:function(){return function(e,t){var r=F(e);return r.view[c](t*i+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=F(e);n&&(r=(r=D(r))<0?0:r>255?255:255&r),o.view[f](t*i+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};H?s&&(b=r(function(t,r,n,o){return u(t,b,l),k(_(r)?W(r)?o!==e?new h(r,g(n,i),o):n!==e?new h(r,g(n,i)):new h(r):$(r)?K(b,r):w.call(b,r):new h(m(r)),t,b)}),E&&E(b,G),S(T(h),function(e){e in b||d(b,e,h[e])}),b.prototype=v):(b=r(function(t,r,n,o){var a,s,c,f,d,h;if(u(t,b,l),a=0,s=0,_(r)){if(!W(r))return $(r)?K(b,r):w.call(b,r);if(c=r,s=g(n,i),h=r.byteLength,o===e){if(h%i)throw x(q);if((f=h-s)<0)throw x(q)}else if((f=p(o)*i)+s>h)throw x(q);d=f/i}else d=m(r),c=new B(f=d*i);for(M(t,{buffer:c,byteOffset:s,byteLength:f,length:d,view:new U(c)});a1?arguments[1]:e,_=y!==e,C=l(b);if(C&&!c(C))for(m=(p=s(b,C)).next,b=[];!(h=m.call(p)).done;)b.push(h.value);for(_&&v>2&&(y=u(y,arguments[2],2)),n=i(b),d=new(f(g))(n),r=0;n>r;r++)d[r]=_?y(b[r],r):b[r];return d}},function(e,t,r){r(358)("Float64",function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(358)("Int8",function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(358)("Int16",function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(358)("Int32",function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(358)("Uint8",function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(358)("Uint8",function(e){return function(t,r,n){return e(this,t,r,n)}},!0)},function(e,t,r){r(358)("Uint16",function(e){return function(t,r,n){return e(this,t,r,n)}})},function(e,t,r){r(358)("Uint32",function(e){return function(t,r,n){return e(this,t,r,n)}})},function(t,r,n){var o=n(163),a=n(54),i=n(53),s=o.aTypedArray;(0,o.exportTypedArrayMethod)("at",function(t){var r=s(this),n=a(r),o=i(t),l=o>=0?o:n+o;return l<0||l>=n?e:r[l]})},function(t,r,n){var o=n(163),a=n(109),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",function(t,r){return a.call(i(this),t,r,arguments.length>2?arguments[2]:e)})},function(t,r,n){var o=n(163),a=n(72).every,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",function(t){return a(i(this),t,arguments.length>1?arguments[1]:e)})},function(e,t,r){var n=r(163),o=r(113),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",function(e){return o.apply(a(this),arguments)})},function(t,r,n){var o=n(163),a=n(72).filter,i=n(376),s=o.aTypedArray;(0,o.exportTypedArrayMethod)("filter",function(t){var r=a(s(this),t,arguments.length>1?arguments[1]:e);return i(this,r)})},function(e,t,r){var n=r(377),o=r(378);e.exports=function(e,t){return n(o(e),t)}},function(e,t){e.exports=function(e,t){for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o}},function(e,t,r){var n=r(163),o=r(165),a=n.TYPED_ARRAY_CONSTRUCTOR,i=n.aTypedArrayConstructor;e.exports=function(e){return i(o(e,e[a]))}},function(t,r,n){var o=n(163),a=n(72).find,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",function(t){return a(i(this),t,arguments.length>1?arguments[1]:e)})},function(t,r,n){var o=n(163),a=n(72).findIndex,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",function(t){return a(i(this),t,arguments.length>1?arguments[1]:e)})},function(t,r,n){var o=n(163),a=n(72).forEach,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",function(t){a(i(this),t,arguments.length>1?arguments[1]:e)})},function(e,t,r){var n=r(359);(0,r(163).exportTypedArrayStaticMethod)("from",r(362),n)},function(t,r,n){var o=n(163),a=n(51).includes,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",function(t){return a(i(this),t,arguments.length>1?arguments[1]:e)})},function(t,r,n){var o=n(163),a=n(51).indexOf,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",function(t){return a(i(this),t,arguments.length>1?arguments[1]:e)})},function(e,t,r){var n=r(3),o=r(46).PROPER,a=r(163),i=r(129),s=r(27)("iterator"),l=n.Uint8Array,c=i.values,u=i.keys,f=i.entries,d=a.aTypedArray,h=a.exportTypedArrayMethod,p=l&&l.prototype[s],m=!!p&&"values"===p.name,g=function(){return c.call(d(this))};h("entries",function(){return f.call(d(this))}),h("keys",function(){return u.call(d(this))}),h("values",g,o&&!m),h(s,g,o&&!m)},function(e,t,r){var n=r(163),o=n.aTypedArray,a=[].join;(0,n.exportTypedArrayMethod)("join",function(e){return a.apply(o(this),arguments)})},function(e,t,r){var n=r(163),o=r(135),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",function(e){return o.apply(a(this),arguments)})},function(t,r,n){var o=n(163),a=n(72).map,i=n(378),s=o.aTypedArray;(0,o.exportTypedArrayMethod)("map",function(t){return a(s(this),t,arguments.length>1?arguments[1]:e,function(e,t){return new(i(e))(t)})})},function(e,t,r){var n=r(163),o=r(359),a=n.aTypedArrayConstructor;(0,n.exportTypedArrayStaticMethod)("of",function(){for(var e=0,t=arguments.length,r=new(a(this))(t);t>e;)r[e]=arguments[e++];return r},o)},function(t,r,n){var o=n(163),a=n(139).left,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",function(t){return a(i(this),t,arguments.length,arguments.length>1?arguments[1]:e)})},function(t,r,n){var o=n(163),a=n(139).right,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",function(t){return a(i(this),t,arguments.length,arguments.length>1?arguments[1]:e)})},function(e,t,r){var n=r(163),o=n.aTypedArray,a=Math.floor;(0,n.exportTypedArrayMethod)("reverse",function(){for(var e,t=this,r=o(t).length,n=a(r/2),i=0;i1?arguments[1]:e,1),n=this.length,o=s(t),u=0,(l=a(o))+r>n)throw RangeError("Wrong length");for(;ua;)c[a]=r[a++];return c},a(function(){new Int8Array(1).slice()}))},function(t,r,n){var o=n(163),a=n(72).some,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",function(t){return a(i(this),t,arguments.length>1?arguments[1]:e)})},function(t,r,n){var o=n(163),a=n(3),i=n(6),s=n(24),l=n(54),c=n(146),u=n(147),f=n(148),d=n(21),h=n(149),p=o.aTypedArray,m=o.exportTypedArrayMethod,g=a.Uint16Array,b=g&&g.prototype.sort,v=!!b&&!i(function(){var e=new g(2);e.sort(null),e.sort({})}),y=!!b&&!i(function(){var e,t,r,n;if(d)return d<74;if(u)return u<67;if(f)return!0;if(h)return h<602;for(e=new g(516),t=Array(516),r=0;r<516;r++)n=r%4,e[r]=515-r,t[r]=r-2*n+3;for(e.sort(function(e,t){return(e/4|0)-(t/4|0)}),r=0;r<516;r++)if(e[r]!==t[r])return!0});m("sort",function(t){var r,n,o,a=this;if(t!==e&&s(t),y)return b.call(a,t);for(p(a),r=l(a),n=Array(r),o=0;o0&&1/n<0?1:-1:r>n}}(t)),o=0;o1?arguments[1]:e,h=n>2?arguments[2]:e;return new(d("Promise"))(function(n){var d,v,y,_,C=a(t);f!==e&&(f=o(f,h,2)),v=(d=u(C,g))?e:c(C)||b,y=i(r)?new r:[],_=d?s(C,d):new p(l(C,v)),n(m(_,f,y))})}},function(e,t,r){var n=r(408),o=r(39),a=r(100),i=r(23),s=r(27)("asyncIterator");e.exports=function(e,t){var r=arguments.length<2?i(e,s):t;return r?o(r.call(e)):new n(a(e))}},function(t,r,n){var o=n(39),a=n(63),i=n(23),s=n(158),l=n(42),c=n(18),u=n(409),f=c("Promise"),d=l.set,h=l.get,p=function(e,t,r){var n=e.done;f.resolve(e.value).then(function(e){t({done:n,value:e})},r)},m=function(e){d(this,{iterator:o(e),next:e.next})};m.prototype=s(a(u),{next:function(e){var t=h(this),r=!!arguments.length;return new f(function(n,a){var i=o(t.next.apply(t.iterator,r?[e]:[]));p(i,n,a)})},"return":function(t){var r=h(this).iterator,n=!!arguments.length;return new f(function(a,s){var l,c=i(r,"return");return c===e?a({done:!0,value:t}):(l=o(c.apply(r,n?[t]:[])),void p(l,a,s))})},"throw":function(t){var r=h(this).iterator,n=!!arguments.length;return new f(function(a,s){var l,c=i(r,"throw");return c===e?s(t):(l=o(c.apply(r,n?[t]:[])),void p(l,a,s))})}}),t.exports=m},function(e,t,r){var n,o,a=r(3),i=r(30),s=r(16),l=r(63),c=r(92),u=r(40),f=r(27),d=r(29),h=f("asyncIterator"),p=a.AsyncIterator,m=i.AsyncIteratorPrototype;if(m)n=m;else if(s(p))n=p.prototype;else if(i.USE_FUNCTION_CONSTRUCTOR||a.USE_FUNCTION_CONSTRUCTOR)try{o=c(c(c(Function("return async function*(){}()")()))),c(o)===Object.prototype&&(n=o)}catch(g){}n?d&&(n=l(n)):n={},s(n[h])||u(n,h,function(){return this}),e.exports=n},function(e,t,r){var n=r(3);e.exports=function(e){return n[e].prototype}},function(t,r,n){var o=n(24),a=n(39),i=n(18),s=n(23),l=function(t){var r=0==t,n=1==t,l=2==t,c=3==t;return function(t,u,f){var d,h,p,m;return a(t),d=i("Promise"),h=o(t.next),p=0,!(m=u!==e)&&r||o(u),new d(function(o,i){var g=function(e,r){try{var n=s(t,"return");if(n)return d.resolve(n.call(t)).then(function(){e(r)},function(e){i(e)})}catch(o){return i(o)}e(r)},b=function(e){g(i,e)},v=function(){try{if(r&&p>9007199254740991&&m)throw TypeError("The allowed number of iterations has been exceeded");d.resolve(a(h.call(t))).then(function(t){try{if(a(t).done)r?(f.length=p,o(f)):o(!c&&(l||e));else{var i=t.value;m?d.resolve(r?u(i,p):u(i)).then(function(e){n?v():l?e?v():g(o,!1):r?(f[p++]=e,v()):e?g(o,c||i):v()},b):(f[p++]=i,v())}}catch(s){b(s)}},b)}catch(i){b(i)}};v()})}};t.exports={toArray:l(0),forEach:l(1),every:l(2),some:l(3),find:l(4)}},function(e,t,r){r(103)},function(t,r,n){var o=n(2),a=n(72).filterReject,i=n(104);o({target:"Array",proto:!0},{filterOut:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}}),i("filterOut")},function(t,r,n){var o=n(2),a=n(72).filterReject,i=n(104);o({target:"Array",proto:!0},{filterReject:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}}),i("filterReject")},function(t,r,n){var o=n(2),a=n(416).findLast,i=n(104);o({target:"Array",proto:!0},{findLast:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}}),i("findLast")},function(t,r,n){var o=n(73),a=n(10),i=n(33),s=n(54),l=function(t){var r=1==t;return function(n,l,c){for(var u,f=i(n),d=a(f),h=o(l,c,3),p=s(d);p-- >0;)if(h(u=d[p],p,f))switch(t){case 0:return u;case 1:return p}return r?-1:e}};t.exports={findLast:l(0),findLastIndex:l(1)}},function(t,r,n){var o=n(2),a=n(416).findLastIndex,i=n(104);o({target:"Array",proto:!0},{findLastIndex:function(t){return a(this,t,arguments.length>1?arguments[1]:e)}}),i("findLastIndex")},function(t,r,n){var o=n(2),a=n(419),i=n(75),s=n(104);o({target:"Array",proto:!0},{groupBy:function(t){var r=arguments.length>1?arguments[1]:e;return a(this,t,r,i)}}),s("groupBy")},function(e,t,r){var n=r(73),o=r(10),a=r(33),i=r(13),s=r(54),l=r(63),c=r(377),u=[].push;e.exports=function(e,t,r,f){for(var d,h,p,m=a(e),g=o(m),b=n(t,r,3),v=l(null),y=s(g),_=0;y>_;_++)(h=i(b(p=g[_],_,m)))in v?u.call(v[h],p):v[h]=[p];if(f&&(d=f(m))!==Array)for(h in v)v[h]=c(d,v[h]);return v}},function(t,r,n){var o=n(2),a=n(59),i=Object.isFrozen,s=function(t,r){var n,o,s;if(!i||!a(t)||!i(t))return!1;for(n=0,o=t.length;nt,h=!1,n===e)p=e;else if(i(n))p=n.step,h=!!n.inclusive;else{if(typeof n!=o)throw new TypeError(c);p=n}if(null==p&&(p=d?s:-s),typeof p!=o)throw new TypeError(c);if(p===1/0||p===-(1/0)||p===a&&t!==r)throw new RangeError(c);f(this,{type:u,start:t,end:r,step:p,inclusiveEnd:h,hitsEnd:t!=t||r!=r||p!=p||r>t!=p>a,currentCount:a,zero:a}),l||(this.start=t,this.end=r,this.step=p,this.inclusive=h)},u,function(){var t,r,n,o,a=d(this);return a.hitsEnd?{value:e,done:!0}:(r=a.end,(n=(t=a.start)+a.step*a.currentCount++)===r&&(a.hitsEnd=!0),o=a.inclusiveEnd,(r>t?o?n>r:n>=r:o?r>n:r>=n)?{value:e,done:a.hitsEnd=!0}:{value:n,done:!1})}),p=function(e){return{get:e,set:function(){},configurable:!0,enumerable:!1}};l&&s(h.prototype,{start:p(function(){return d(this).start}),end:p(function(){return d(this).end}),inclusive:p(function(){return d(this).inclusiveEnd}),step:p(function(){return d(this).step})}),t.exports=h},function(e,t,r){var n=r(2),o=r(443),a=r(18),i=r(63),s=function(){var e=a("Object","freeze");return e?e(i(null)):i(null)};n({global:!0},{compositeKey:function(){return o.apply(Object,arguments).get("object",s)}})},function(e,t,r){var n,o=r(188),a=r(401),i=r(63),s=r(15),l=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=i(null)};l.prototype.get=function(e,t){return this[e]||(this[e]=t())},l.prototype.next=function(e,t,r){var n=r?this.objectsByIndex[e]||(this.objectsByIndex[e]=new a):this.primitives||(this.primitives=new o),i=n.get(t);return i||n.set(t,i=new l),i},n=new l,e.exports=function(){var e,t,r=n,o=arguments.length;for(e=0;e1?arguments[1]:e,3);return!c(n,function(e,t,n){if(!o(t,e,r))return n()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t){e.exports=function(e){return Map.prototype.entries.call(e)}},function(t,r,n){var o=n(2),a=n(29),i=n(18),s=n(24),l=n(39),c=n(73),u=n(165),f=n(466),d=n(97);o({target:"Map",proto:!0,real:!0,forced:a},{filter:function(t){var r=l(this),n=f(r),o=c(t,arguments.length>1?arguments[1]:e,3),a=new(u(r,i("Map"))),h=s(a.set);return d(n,function(e,t){o(t,e,r)&&h.call(a,e,t)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}})},function(t,r,n){var o=n(2),a=n(29),i=n(39),s=n(73),l=n(466),c=n(97);o({target:"Map",proto:!0,real:!0,forced:a},{find:function(t){var r=i(this),n=l(r),o=s(t,arguments.length>1?arguments[1]:e,3);return c(n,function(e,t,n){if(o(t,e,r))return n(t)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},function(t,r,n){var o=n(2),a=n(29),i=n(39),s=n(73),l=n(466),c=n(97);o({target:"Map",proto:!0,real:!0,forced:a},{findKey:function(t){var r=i(this),n=l(r),o=s(t,arguments.length>1?arguments[1]:e,3);return c(n,function(e,t,n){if(o(t,e,r))return n(e)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},function(e,t,r){r(2)({target:"Map",stat:!0},{from:r(471)})},function(t,r,n){var o=n(24),a=n(166),i=n(73),s=n(97);t.exports=function(t){var r,n,l,c,u=arguments.length,f=u>1?arguments[1]:e;return a(this),(r=f!==e)&&o(f),t==e?new this:(n=[],r?(l=0,c=i(f,u>2?arguments[2]:e,2),s(t,function(e){n.push(c(e,l++))})):s(t,n.push,{that:n}),new this(n))}},function(e,t,r){var n=r(2),o=r(24),a=r(100),i=r(97);n({target:"Map",stat:!0},{groupBy:function(e,t){var r,n,s,l,c;return o(t),r=a(e),n=new this,s=o(n.has),l=o(n.get),c=o(n.set),i(r,function(e){var r=t(e);s.call(n,r)?l.call(n,r).push(e):c.call(n,r,[e])},{IS_ITERATOR:!0}),n}})},function(e,t,r){var n=r(2),o=r(29),a=r(39),i=r(466),s=r(474),l=r(97);n({target:"Map",proto:!0,real:!0,forced:o},{includes:function(e){return l(i(a(this)),function(t,r,n){if(s(r,e))return n()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,r){var n=r(2),o=r(97),a=r(24);n({target:"Map",stat:!0},{keyBy:function(e,t){var r,n=new this;return a(t),r=a(n.set),o(e,function(e){r.call(n,t(e),e)}),n}})},function(e,t,r){var n=r(2),o=r(29),a=r(39),i=r(466),s=r(97);n({target:"Map",proto:!0,real:!0,forced:o},{keyOf:function(e){return s(i(a(this)),function(t,r,n){if(r===e)return n(t)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},function(t,r,n){var o=n(2),a=n(29),i=n(18),s=n(24),l=n(39),c=n(73),u=n(165),f=n(466),d=n(97);o({target:"Map",proto:!0,real:!0,forced:a},{mapKeys:function(t){var r=l(this),n=f(r),o=c(t,arguments.length>1?arguments[1]:e,3),a=new(u(r,i("Map"))),h=s(a.set);return d(n,function(e,t){h.call(a,o(t,e,r),t)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}})},function(t,r,n){var o=n(2),a=n(29),i=n(18),s=n(24),l=n(39),c=n(73),u=n(165),f=n(466),d=n(97);o({target:"Map",proto:!0,real:!0,forced:a},{mapValues:function(t){var r=l(this),n=f(r),o=c(t,arguments.length>1?arguments[1]:e,3),a=new(u(r,i("Map"))),h=s(a.set);return d(n,function(e,t){h.call(a,e,o(t,e,r))},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}})},function(e,t,r){var n=r(2),o=r(29),a=r(24),i=r(39),s=r(97);n({target:"Map",proto:!0,real:!0,forced:o},{merge:function(e){for(var t=i(this),r=a(t.set),n=arguments.length,o=0;o1?arguments[1]:e,3);return c(n,function(e,t,n){if(o(t,e,r))return n()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(t,r,n){var o=n(2),a=n(29),i=n(39),s=n(24);o({target:"Map",proto:!0,real:!0,forced:a},{update:function(t,r){var n,o,a=i(this),l=arguments.length;if(s(r),!(n=a.has(t))&&l<3)throw TypeError("Updating absent value");return o=n?a.get(t):s(l>2?arguments[2]:e)(t,a),a.set(t,r(o,t,a)),a}})},function(e,t,r){r(2)({target:"Map",proto:!0,real:!0,name:"upsert",forced:r(29)},{updateOrInsert:r(486)})},function(t,r,n){var o=n(16),a=n(39);t.exports=function(t,r){var n,i=a(this),s=arguments.length>2?arguments[2]:e;if(!o(r)&&!o(s))throw TypeError("At least one callback required");return i.has(t)?(n=i.get(t),o(r)&&(n=r(n),i.set(t,n))):o(s)&&(n=s(),i.set(t,n)),n}},function(e,t,r){r(2)({target:"Map",proto:!0,real:!0,forced:r(29)},{upsert:r(486)})},function(e,t,r){var n=r(2),o=Math.min,a=Math.max;n({target:"Math",stat:!0},{clamp:function(e,t,r){return o(r,a(t,e))}})},function(e,t,r){r(2)({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},function(e,t,r){var n=r(2),o=180/Math.PI;n({target:"Math",stat:!0},{degrees:function(e){return e*o}})},function(e,t,r){var n=r(2),o=r(492),a=r(205);n({target:"Math",stat:!0},{fscale:function(e,t,r,n,i){return a(o(e,t,r,n,i))}})},function(e,t){e.exports=Math.scale||function(e,t,r,n,o){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||o!=o?NaN:e===1/0||e===-(1/0)?e:(e-t)*(o-n)/(r-t)+n}},function(e,t,r){r(2)({target:"Math",stat:!0},{iaddh:function(e,t,r,n){var o=e>>>0,a=r>>>0;return(t>>>0)+(n>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},function(e,t,r){r(2)({target:"Math",stat:!0},{imulh:function(e,t){var r=65535,n=+e,o=+t,a=n&r,i=o&r,s=n>>16,l=o>>16,c=(s*i>>>0)+(a*i>>>16);return s*l+(c>>16)+((a*l>>>0)+(c&r)>>16)}})},function(e,t,r){r(2)({target:"Math",stat:!0},{isubh:function(e,t,r,n){var o=e>>>0,a=r>>>0;return(t>>>0)-(n>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},function(e,t,r){r(2)({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},function(e,t,r){var n=r(2),o=Math.PI/180;n({target:"Math",stat:!0},{radians:function(e){return e*o}})},function(e,t,r){r(2)({target:"Math",stat:!0},{scale:r(492)})},function(e,t,r){var n=r(2),o=r(39),a=r(222),i=r(131),s=r(42),l="Seeded Random Generator",c=s.set,u=s.getterFor(l),f=i(function(e){c(this,{type:l,seed:e%2147483647})},"Seeded Random",function(){var e=u(this);return{value:(1073741823&(e.seed=(1103515245*e.seed+12345)%2147483647))/1073741823,done:!1}});n({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=o(e).seed;if(!a(t))throw TypeError('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new f(t)}})},function(e,t,r){r(2)({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-(1/0):e<0}})},function(e,t,r){r(2)({target:"Math",stat:!0},{umulh:function(e,t){var r=65535,n=+e,o=+t,a=n&r,i=o&r,s=n>>>16,l=o>>>16,c=(s*i>>>0)+(a*i>>>16);return s*l+(c>>>16)+((a*l>>>0)+(c&r)>>>16)}})},function(t,r,n){var o=n(2),a=n(53),i=n(232),s="Invalid number representation",l=/^[\da-z]+$/;o({target:"Number",stat:!0},{fromString:function(t,r){var n,o,c=1;if("string"!=typeof t)throw TypeError(s);if(!t.length)throw SyntaxError(s);if("-"==t.charAt(0)&&(c=-1,!(t=t.slice(1)).length))throw SyntaxError(s);if((n=r===e?10:a(r))<2||n>36)throw RangeError("Invalid radix");if(!l.test(t)||(o=i(t,n)).toString(n)!==t)throw SyntaxError(s);return c*o}})},function(e,t,r){var n=r(2),o=r(441);n({target:"Number",stat:!0},{range:function(e,t,r){return new o(e,t,r,"number",0,1)}})},function(e,t,r){r(251)},function(e,t,r){var n=r(2),o=r(506);n({target:"Object",stat:!0},{iterateEntries:function(e){return new o(e,"entries")}})},function(t,r,n){var o=n(42),a=n(131),i=n(32),s=n(65),l=n(33),c="Object Iterator",u=o.set,f=o.getterFor(c);t.exports=a(function(e,t){var r=l(e);u(this,{type:c,mode:t,object:r,keys:s(r),index:0})},"Object",function(){for(var t,r,n=f(this),o=n.keys;;){if(null===o||n.index>=o.length)return n.object=n.keys=null,{value:e,done:!0};if(t=o[n.index++],i(r=n.object,t)){switch(n.mode){case"keys":return{value:t,done:!1};case"values":return{value:r[t],done:!1}}return{value:[t,r[t]],done:!1}}}})},function(e,t,r){var n=r(2),o=r(506);n({target:"Object",stat:!0},{iterateKeys:function(e){return new o(e,"keys")}})},function(e,t,r){var n=r(2),o=r(506);n({target:"Object",stat:!0},{iterateValues:function(e){return new o(e,"values")}})},function(t,r,n){var o,a,i=n(2),s=n(5),l=n(151),c=n(24),u=n(16),f=n(76),d=n(39),h=n(15),p=n(159),m=n(38).f,g=n(40),b=n(158),v=n(100),y=n(23),_=n(97),C=n(277),A=n(27),E=n(42),T=A("observable"),w=E.get,S=E.set,P=function(t){var r=t.cleanup;if(r){t.cleanup=e;try{r()}catch(n){C(n)}}},O=function(t){return t.observer===e},R=function(t){var r;s||(t.facade.closed=!0,(r=t.subscriptionObserver)&&(r.closed=!0)),t.observer=e},I=function(t,r){var n,a,i,l,f=S(this,{cleanup:e,observer:d(t),subscriptionObserver:e});s||(this.closed=!1);try{(n=y(t,"start"))&&n.call(t,this)}catch(h){C(h)}if(!O(f)){a=f.subscriptionObserver=new o(this);try{i=r(a),l=i,null!=i&&(f.cleanup=u(i.unsubscribe)?function(){l.unsubscribe()}:c(i))}catch(h){return void a.error(h)}O(f)&&P(f)}};I.prototype=b({},{unsubscribe:function(){var e=w(this);O(e)||(R(e),P(e))}}),s&&m(I.prototype,"closed",{configurable:!0,get:function(){return O(w(this))}}),(o=function(e){S(this,{subscription:e}),s||(this.closed=!1)}).prototype=b({},{next:function(e){var t,r,n=w(w(this).subscription);if(!O(n)){t=n.observer;try{(r=y(t,"next"))&&r.call(t,e)}catch(o){C(o)}}},error:function(e){var t,r,n=w(w(this).subscription);if(!O(n)){t=n.observer,R(n);try{(r=y(t,"error"))?r.call(t,e):C(e)}catch(o){C(o)}P(n)}},complete:function(){var e,t,r=w(w(this).subscription);if(!O(r)){e=r.observer,R(r);try{(t=y(e,"complete"))&&t.call(e)}catch(n){C(n)}P(r)}}}),s&&m(o.prototype,"closed",{configurable:!0,get:function(){return O(w(w(this).subscription))}}),b((a=function(e){p(this,a,"Observable"),S(this,{subscriber:c(e)})}).prototype,{subscribe:function(t){var r=arguments.length;return new I(u(t)?{next:t,error:r>1?arguments[1]:e,complete:r>2?arguments[2]:e}:h(t)?t:{},w(this).subscriber)}}),b(a,{from:function(e){var t,r,n=f(this)?this:a,o=y(d(e),T);return o?(t=d(o.call(e))).constructor===n?t:new n(function(e){return t.subscribe(e)}):(r=v(e),new n(function(e){_(r,function(t,r){if(e.next(t),e.closed)return r()},{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))},of:function(){for(var e=f(this)?this:a,t=arguments.length,r=new Array(t),n=0;n1?arguments[1]:e,3);return!c(n,function(e,t){if(!o(e,e,r))return t()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t){e.exports=function(e){return Set.prototype.values.call(e)}},function(t,r,n){var o=n(2),a=n(29),i=n(18),s=n(24),l=n(39),c=n(73),u=n(165),f=n(528),d=n(97);o({target:"Set",proto:!0,real:!0,forced:a},{filter:function(t){var r=l(this),n=f(r),o=c(t,arguments.length>1?arguments[1]:e,3),a=new(u(r,i("Set"))),h=s(a.add);return d(n,function(e){o(e,e,r)&&h.call(a,e)},{IS_ITERATOR:!0}),a}})},function(t,r,n){var o=n(2),a=n(29),i=n(39),s=n(73),l=n(528),c=n(97);o({target:"Set",proto:!0,real:!0,forced:a},{find:function(t){var r=i(this),n=l(r),o=s(t,arguments.length>1?arguments[1]:e,3);return c(n,function(e,t){if(o(e,e,r))return t(e)},{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},function(e,t,r){r(2)({target:"Set",stat:!0},{from:r(471)})},function(e,t,r){var n=r(2),o=r(29),a=r(18),i=r(24),s=r(39),l=r(165),c=r(97);n({target:"Set",proto:!0,real:!0,forced:o},{intersection:function(e){var t=s(this),r=new(l(t,a("Set"))),n=i(t.has),o=i(r.add);return c(e,function(e){n.call(t,e)&&o.call(r,e)}),r}})},function(e,t,r){var n=r(2),o=r(29),a=r(24),i=r(39),s=r(97);n({target:"Set",proto:!0,real:!0,forced:o},{isDisjointFrom:function(e){var t=i(this),r=a(t.has);return!s(e,function(e,n){if(!0===r.call(t,e))return n()},{INTERRUPTED:!0}).stopped}})},function(e,t,r){var n=r(2),o=r(29),a=r(18),i=r(24),s=r(16),l=r(39),c=r(100),u=r(97);n({target:"Set",proto:!0,real:!0,forced:o},{isSubsetOf:function(e){var t=c(this),r=l(e),n=r.has;return s(n)||(r=new(a("Set"))(e),n=i(r.has)),!u(t,function(e,t){if(!1===n.call(r,e))return t()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t,r){var n=r(2),o=r(29),a=r(24),i=r(39),s=r(97);n({target:"Set",proto:!0,real:!0,forced:o},{isSupersetOf:function(e){var t=i(this),r=a(t.has);return!s(e,function(e,n){if(!1===r.call(t,e))return n()},{INTERRUPTED:!0}).stopped}})},function(t,r,n){var o=n(2),a=n(29),i=n(39),s=n(528),l=n(97);o({target:"Set",proto:!0,real:!0,forced:a},{join:function(t){var r=i(this),n=s(r),o=t===e?",":String(t),a=[];return l(n,a.push,{that:a,IS_ITERATOR:!0}),a.join(o)}})},function(t,r,n){var o=n(2),a=n(29),i=n(18),s=n(24),l=n(39),c=n(73),u=n(165),f=n(528),d=n(97);o({target:"Set",proto:!0,real:!0,forced:a},{map:function(t){var r=l(this),n=f(r),o=c(t,arguments.length>1?arguments[1]:e,3),a=new(u(r,i("Set"))),h=s(a.add);return d(n,function(e){h.call(a,o(e,e,r))},{IS_ITERATOR:!0}),a}})},function(e,t,r){r(2)({target:"Set",stat:!0},{of:r(481)})},function(t,r,n){var o=n(2),a=n(29),i=n(24),s=n(39),l=n(528),c=n(97);o({target:"Set",proto:!0,real:!0,forced:a},{reduce:function(t){var r=s(this),n=l(r),o=arguments.length<2,a=o?e:arguments[1];if(i(t),c(n,function(e){o?(o=!1,a=e):a=t(a,e,e,r)},{IS_ITERATOR:!0}),o)throw TypeError("Reduce of empty set with no initial value");return a}})},function(t,r,n){var o=n(2),a=n(29),i=n(39),s=n(73),l=n(528),c=n(97);o({target:"Set",proto:!0,real:!0,forced:a},{some:function(t){var r=i(this),n=l(r),o=s(t,arguments.length>1?arguments[1]:e,3);return c(n,function(e,t){if(o(e,e,r))return t()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t,r){var n=r(2),o=r(29),a=r(18),i=r(24),s=r(39),l=r(165),c=r(97);n({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:function(e){var t=s(this),r=new(l(t,a("Set")))(t),n=i(r["delete"]),o=i(r.add);return c(e,function(e){n.call(r,e)||o.call(r,e)}),r}})},function(e,t,r){var n=r(2),o=r(29),a=r(18),i=r(24),s=r(39),l=r(165),c=r(97);n({target:"Set",proto:!0,real:!0,forced:o},{union:function(e){var t=s(this),r=new(l(t,a("Set")))(t);return c(e,i(r.add),{that:r}),r}})},function(e,t,r){var n=r(2),o=r(314).charAt;n({target:"String",proto:!0,forced:r(6)(function(){return"𠮷"!=="𠮷".at(0)})},{at:function(e){return o(this,e)}})},function(t,r,n){var o=n(2),a=n(131),i=n(12),s=n(60),l=n(42),c=n(314),u=c.codeAt,f=c.charAt,d="String Iterator",h=l.set,p=l.getterFor(d),m=a(function(e){h(this,{type:d,string:e,index:0})},"String",function(){var t,r=p(this),n=r.string,o=r.index;return o>=n.length?{value:e,done:!0}:(t=f(n,o),r.index+=t.length,{value:{codePoint:u(t,0),position:o},done:!1})});o({target:"String",proto:!0},{codePoints:function(){return new m(s(i(this)))}})},function(e,t,r){r(325)},function(e,t,r){r(333)},function(e,t,r){r(69)("asyncDispose")},function(e,t,r){r(69)("dispose")},function(e,t,r){r(69)("matcher")},function(e,t,r){r(69)("metadata")},function(e,t,r){r(69)("observable")},function(e,t,r){r(69)("patternMatch")},function(e,t,r){r(69)("replaceAll")},function(t,r,n){var o=n(18),a=n(166),i=n(406),s=n(359),l=n(163),c=n(377),u=l.aTypedArrayConstructor;(0,l.exportTypedArrayStaticMethod)("fromAsync",function(t){var r=this,n=arguments.length,s=n>1?arguments[1]:e,l=n>2?arguments[2]:e; return new(o("Promise"))(function(e){a(r),e(i(t,s,l))}).then(function(e){return c(u(r),e)})},s)},function(e,t,r){r(371)},function(t,r,n){var o=n(163),a=n(72).filterReject,i=n(376),s=o.aTypedArray;(0,o.exportTypedArrayMethod)("filterOut",function(t){var r=a(s(this),t,arguments.length>1?arguments[1]:e);return i(this,r)})},function(t,r,n){var o=n(163),a=n(72).filterReject,i=n(376),s=o.aTypedArray;(0,o.exportTypedArrayMethod)("filterReject",function(t){var r=a(s(this),t,arguments.length>1?arguments[1]:e);return i(this,r)})},function(t,r,n){var o=n(163),a=n(416).findLast,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findLast",function(t){return a(i(this),t,arguments.length>1?arguments[1]:e)})},function(t,r,n){var o=n(163),a=n(416).findLastIndex,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findLastIndex",function(t){return a(i(this),t,arguments.length>1?arguments[1]:e)})},function(t,r,n){var o=n(163),a=n(419),i=n(378),s=o.aTypedArray;(0,o.exportTypedArrayMethod)("groupBy",function(t){var r=arguments.length>1?arguments[1]:e;return a(s(this),t,r,i)})},function(e,t,r){var n=r(163),o=r(424),a=r(376),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("uniqueBy",function(e){return a(this,o.call(i(this),e))})},function(e,t,r){var n=r(2),o=r(29),a=r(462);n({target:"WeakMap",proto:!0,real:!0,forced:o},{deleteAll:function(){return a.apply(this,arguments)}})},function(e,t,r){r(2)({target:"WeakMap",stat:!0},{from:r(471)})},function(e,t,r){r(2)({target:"WeakMap",stat:!0},{of:r(481)})},function(e,t,r){r(2)({target:"WeakMap",proto:!0,real:!0,forced:r(29)},{emplace:r(464)})},function(e,t,r){r(2)({target:"WeakMap",proto:!0,real:!0,forced:r(29)},{upsert:r(486)})},function(e,t,r){var n=r(2),o=r(29),a=r(524);n({target:"WeakSet",proto:!0,real:!0,forced:o},{addAll:function(){return a.apply(this,arguments)}})},function(e,t,r){var n=r(2),o=r(29),a=r(462);n({target:"WeakSet",proto:!0,real:!0,forced:o},{deleteAll:function(){return a.apply(this,arguments)}})},function(e,t,r){r(2)({target:"WeakSet",stat:!0},{from:r(471)})},function(e,t,r){r(2)({target:"WeakSet",stat:!0},{of:r(481)})},function(e,t,r){var n,o=r(3),a=r(572),i=r(573),s=r(121),l=r(37),c=function(e){if(e&&e.forEach!==s)try{l(e,"forEach",s)}catch(t){e.forEach=s}};for(n in a)a[n]&&c(o[n]&&o[n].prototype);c(i)},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,r,n){var o=n(36)("span").classList,a=o&&o.constructor&&o.constructor.prototype;t.exports=a===Object.prototype?e:a},function(e,t,r){var n,o=r(3),a=r(572),i=r(573),s=r(129),l=r(37),c=r(27),u=c("iterator"),f=c("toStringTag"),d=s.values,h=function(e,t){if(e){if(e[u]!==d)try{l(e,u,d)}catch(r){e[u]=d}if(e[f]||l(e,f,t),a[t])for(var n in s)if(e[n]!==s[n])try{l(e,n,s[n])}catch(r){e[n]=s[n]}}};for(n in a)h(o[n]&&o[n].prototype,n);h(i,"DOMTokenList")},function(e,t,r){var n=r(2),o=r(3),a=r(270);n({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},function(e,t,r){var n=r(2),o=r(3),a=r(272),i=r(140),s=o.process;n({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=i&&s.domain;a(t?t.bind(e):e)}})},function(t,r,n){var o=n(2),a=n(3),i=n(16),s=n(22),l=[].slice,c=function(t){return function(r,n){var o=arguments.length>2,a=o?l.call(arguments,2):e;return t(o?function(){(i(r)?r:Function(r)).apply(this,a)}:r,n)}};o({global:!0,bind:!0,forced:/MSIE .\./.test(s)},{setTimeout:c(a.setTimeout),setInterval:c(a.setInterval)})},function(t,r,n){var o,a,i,s,l,c,u,f,d,h,p,m,g,b,v,y,_,C,A,E,T,w,S,P,O,R,I,k,F,M,L,N,D,x,B,U,H,J,j,G,V,X,$,z,q,K,Z,W,Q,Y,ee,te,re,ne,oe,ae,ie,se,le,ce,ue,fe,de,he,pe,me,ge,be,ve,ye,_e,Ce,Ae,Ee,Te,we,Se,Pe,Oe,Re,Ie,ke,Fe,Me,Le,Ne,De,xe,Be,Ue,He,Je,je,Ge,Ve,Xe;n(320),o=n(2),a=n(5),i=n(579),s=n(3),l=n(64),c=n(40),u=n(159),f=n(32),d=n(236),h=n(123),p=n(314).codeAt,m=n(580),g=n(60),b=n(71),v=n(581),y=n(42),_=s.URL,C=v.URLSearchParams,A=v.getState,E=y.set,T=y.getterFor("URL"),w=Math.floor,S=Math.pow,P="Invalid scheme",O="Invalid host",R="Invalid port",I=/[A-Za-z]/,k=/[\d+-.A-Za-z]/,F=/\d/,M=/^0x/i,L=/^[0-7]+$/,N=/^\d+$/,D=/^[\dA-Fa-f]+$/,x=/[\0\t\n\r #%\/:<>?@[\\\]^|]/,B=/[\0\t\n\r #\/:<>?@[\\\]^|]/,U=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,H=/[\t\n\r]/g,j=function(e,t){var r,n,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return O;if(!(r=V(t.slice(1,-1))))return O;e.host=r}else if(Y(e)){if(t=m(t),x.test(t))return O;if(null===(r=G(t)))return O;e.host=r}else{if(B.test(t))return O;for(r="",n=h(t),o=0;o4)return e;for(r=[],n=0;n1&&"0"==o.charAt(0)&&(a=M.test(o)?16:8,o=o.slice(8==a?1:2)),""===o)i=0;else{if(!(10==a?N:8==a?L:D).test(o))return e;i=parseInt(o,a)}r.push(i)}for(n=0;n=S(256,5-t))return null}else if(i>255)return null;for(s=r.pop(),n=0;n6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;f++}if(!F.test(d()))return;for(;F.test(d());){if(a=parseInt(d(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;f++}l[c]=256*l[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(i=c-u,c=7;0!=c&&i>0;)s=l[c],l[c--]=l[u+i-1],l[u+--i]=s;else if(8!=c)return;return l},X=function(e){for(var t=null,r=1,n=null,o=0,a=0;a<8;a++)0!==e[a]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=a),++o);return o>r&&(t=n,r=o),t},$=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=w(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=X(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},q=d({},z={},{" ":1,'"':1,"<":1,">":1,"`":1}),K=d({},q,{"#":1,"?":1,"{":1,"}":1}),Z=d({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),W=function(e,t){var r=p(e,0);return r>32&&r<127&&!f(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(e){return f(Q,e.scheme)},ee=function(e){return""!=e.username||""!=e.password},te=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},re=function(e,t){var r;return 2==e.length&&I.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},ne=function(e){var t;return e.length>1&&re(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},oe=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&re(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},ie=function(e){return".."===(e=e.toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e},se={},le={},ce={},ue={},fe={},de={},he={},pe={},me={},ge={},be={},ve={},ye={},_e={},Ce={},Ae={},Ee={},Te={},we={},Se={},Pe={},Oe=function(e,t,r,n){var o,a,i,s,l,c,u,d,p=r||se,m=0,g="",b=!1,v=!1,y=!1;for(r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(H,""),o=h(t);m<=o.length;){switch(a=o[m],p){case se:if(!a||!I.test(a)){if(r)return P;p=ce;continue}g+=a.toLowerCase(),p=le;break;case le:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))g+=a.toLowerCase();else{if(":"!=a){if(r)return P;g="",p=ce,m=0;continue}if(r&&(Y(e)!=f(Q,g)||"file"==g&&(ee(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=g,r)return void(Y(e)&&Q[e.scheme]==e.port&&(e.port=null));g="","file"==e.scheme?p=_e:Y(e)&&n&&n.scheme==e.scheme?p=ue:Y(e)?p=pe:"/"==o[m+1]?(p=fe,m++):(e.cannotBeABaseURL=!0,e.path.push(""),p=we)}break;case ce:if(!n||n.cannotBeABaseURL&&"#"!=a)return P;if(n.cannotBeABaseURL&&"#"==a){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,p=Pe;break}p="file"==n.scheme?_e:de;continue;case ue:if("/"!=a||"/"!=o[m+1]){p=de;continue}p=me,m++;break;case fe:if("/"==a){p=ge;break}p=Te;continue;case de:if(e.scheme=n.scheme,a==J)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==a||"\\"==a&&Y(e))p=he;else if("?"==a)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",p=Se;else{if("#"!=a){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),p=Te;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",p=Pe}break;case he:if(!Y(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,p=Te;continue}p=ge}else p=me;break;case pe:if(p=me,"/"!=a||"/"!=g.charAt(m+1))continue;m++;break;case me:if("/"!=a&&"\\"!=a){p=ge;continue}break;case ge:if("@"==a){for(b&&(g="%40"+g),b=!0,i=h(g),l=0;l65535)return R;e.port=Y(e)&&d===Q[e.scheme]?null:d,g=""}if(r)return;p=Ee;continue}return R}g+=a;break;case _e:if(e.scheme="file","/"==a||"\\"==a)p=Ce;else{if(!n||"file"!=n.scheme){p=Te;continue}if(a==J)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==a)e.host=n.host,e.path=n.path.slice(),e.query="",p=Se;else{if("#"!=a){ne(o.slice(m).join(""))||(e.host=n.host,e.path=n.path.slice(),oe(e)),p=Te;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",p=Pe}}break;case Ce:if("/"==a||"\\"==a){p=Ae;break}n&&"file"==n.scheme&&!ne(o.slice(m).join(""))&&(re(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),p=Te;continue;case Ae:if(a==J||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&re(g))p=Te;else if(""==g){if(e.host="",r)return;p=Ee}else{if(s=j(e,g))return s;if("localhost"==e.host&&(e.host=""),r)return;g="",p=Ee}continue}g+=a;break;case Ee:if(Y(e)){if(p=Te,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=J&&(p=Te,"/"!=a))continue}else e.fragment="",p=Pe;else e.query="",p=Se;break;case Te:if(a==J||"/"==a||"\\"==a&&Y(e)||!r&&("?"==a||"#"==a)){if(ie(g)?(oe(e),"/"==a||"\\"==a&&Y(e)||e.path.push("")):ae(g)?"/"==a||"\\"==a&&Y(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&re(g)&&(e.host&&(e.host=""),g=g.charAt(0)+":"),e.path.push(g)),g="","file"==e.scheme&&(a==J||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",p=Se):"#"==a&&(e.fragment="",p=Pe)}else g+=W(a,K);break;case we:"?"==a?(e.query="",p=Se):"#"==a?(e.fragment="",p=Pe):a!=J&&(e.path[0]+=W(a,z));break;case Se:r||"#"!=a?a!=J&&("'"==a&&Y(e)?e.query+="%27":e.query+="#"==a?"%23":W(a,z)):(e.fragment="",p=Pe);break;case Pe:a!=J&&(e.fragment+=W(a,q))}m++}},Re=function(t){var r,n,o,i,s=u(this,Re,"URL"),l=arguments.length>1?arguments[1]:e,c=g(t),f=E(s,{type:"URL"});if(l!==e)if(l instanceof Re)r=T(l);else if(n=Oe(r={},g(l)))throw TypeError(n);if(n=Oe(f,c,null,r))throw TypeError(n);o=f.searchParams=new C,(i=A(o)).updateSearchParams(f.query),i.updateURL=function(){f.query=String(o)||null},a||(s.href=ke.call(s),s.origin=Fe.call(s),s.protocol=Me.call(s),s.username=Le.call(s),s.password=Ne.call(s),s.host=De.call(s),s.hostname=xe.call(s),s.port=Be.call(s),s.pathname=Ue.call(s),s.search=He.call(s),s.searchParams=Je.call(s),s.hash=je.call(s))},Ie=Re.prototype,ke=function(){var e=T(this),t=e.scheme,r=e.username,n=e.password,o=e.host,a=e.port,i=e.path,s=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",ee(e)&&(c+=r+(n?":"+n:"")+"@"),c+=$(o),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Fe=function(){var e=T(this),t=e.scheme,r=e.port;if("blob"==t)try{return new Re(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&Y(e)?t+"://"+$(e.host)+(null!==r?":"+r:""):"null"},Me=function(){return T(this).scheme+":"},Le=function(){return T(this).username},Ne=function(){return T(this).password},De=function(){var e=T(this),t=e.host,r=e.port;return null===t?"":null===r?$(t):$(t)+":"+r},xe=function(){var e=T(this).host;return null===e?"":$(e)},Be=function(){var e=T(this).port;return null===e?"":String(e)},Ue=function(){var e=T(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},He=function(){var e=T(this).query;return e?"?"+e:""},Je=function(){return T(this).searchParams},je=function(){var e=T(this).fragment;return e?"#"+e:""},Ge=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}},a&&l(Ie,{href:Ge(ke,function(e){var t=T(this),r=g(e),n=Oe(t,r);if(n)throw TypeError(n);A(t.searchParams).updateSearchParams(t.query)}),origin:Ge(Fe),protocol:Ge(Me,function(e){var t=T(this);Oe(t,g(e)+":",se)}),username:Ge(Le,function(e){var t,r=T(this),n=h(g(e));if(!te(r))for(r.username="",t=0;t>1,e+=s(e/t);e>455;n+=36)e=s(e/35);return s(n+36*e/(e+38))},f=function(e){var t,r,o,a,f,d,h,p,m,g,b,v,y,_,C,A=[];for(t=(e=function(e){for(var t,r,n=[],o=0,a=e.length;o=55296&&t<=56319&&o=r&&ds((n-o)/(g=p+1)))throw RangeError(i);for(o+=(m-r)*g,r=m,f=0;fn)throw RangeError(i);if(d==r){for(b=o,v=36;!(b<(y=v<=a?1:v>=a+26?26:v-a));v+=36)A.push(l(c(y+(_=b-y)%(C=36-y)))),b=s(_/C);A.push(l(c(b))),a=u(o,g,p==h),o=0,++p}}++o,++r}return A.join("")};e.exports=function(e){var t,r,n=[],i=e.toLowerCase().replace(a,".").split(".");for(t=0;t0?arguments[0]:e,F(this,{type:I,entries:r=[],updateURL:function(){},updateSearchParams:X}),t!==e)if(v(t))if(n=E(t))for(a=(o=A(t,n)).next;!(i=a.call(o)).done;){if((c=(l=(s=A(b(i.value))).next).call(s)).done||(u=l.call(s)).done||!l.call(s).done)throw TypeError("Expected sequence with length 2");r.push({key:y(c.value),value:y(u.value)})}else for(f in t)p(t,f)&&r.push({key:f,value:y(t[f])});else V(r,"string"==typeof t?"?"===t.charAt(0)?t.slice(1):t:y(t))},l(K=q.prototype,{append:function(e,t){$(arguments.length,2);var r=M(this);r.entries.push({key:y(e),value:y(t)}),r.updateURL()},"delete":function(e){var t,r,n,o;for($(arguments.length,1),r=(t=M(this)).entries,n=y(e),o=0;oe.key){o.splice(t,0,e);break}t===r&&o.push(e)}n.updateURL()},forEach:function(t){for(var r,n=M(this).entries,o=m(t,arguments.length>1?arguments[1]:e,3),a=0;a1?Z(arguments[1]):{})}}),h(S)&&(W=function(e){return d(this,W,"Request"),new S(e,arguments.length>1?Z(arguments[1]):{})},P.constructor=W,W.prototype=P,o({global:!0,forced:!0},{Request:W}))),t.exports={URLSearchParams:q,getState:M}},function(e,t,r){r(2)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})}],r={},(n=function(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}).m=t,n.c=r,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){var r,o;if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;if(r=Object.create(null),n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return{}.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}(),angular.module("voucher.redeem.service",["config","google.analytics"]).factory("voucherRedeem",["$http","CONFIG","googleAnalytics",function(e,t,r){return function(n,o){var a={voucherCode:n};return o&&(a.captchaToken=o),e.post(t.apiUrl+"/voucher/redeem",a).then(function(e){return r.trackEvent("Voucher","Redeemed"),e})}}]),angular.module("voucher.redeem",["events","form","hCAPTCHA","locale","notifier","purse.service","templates","voucher.icon","voucher.redeem.service"]).component("habboVoucherRedeem",{controller:["$compile","$scope","$q","$timeout","$translate","CaptchaConfig","EVENTS","hCaptchaService","notifier","purse","voucherRedeem",function(e,t,r,n,o,a,i,s,l,c,u){function f(){t.voucherRedeemForm.$setPristine(),p.voucherCode=""}function d(e){return o("VOUCHER_REDEEM_NOTIFICATION_AWARDED").then(function(r){var o=t.$new();o.credits=e.data.credits,o.product=e.data.product,o.credits&&n(function(){var e=h(o,'');l.success(r+" "+e)}),o.product&&n(function(){var e=h(o,'');l.success(r+" "+e)})})}function h(t,r){var n=e(angular.element("
"+r+"
"))(t);return t.$digest(),n.html()}var p=this;p.redeemInProgress=!1,p.captchaConfig={provider:null},p.$onInit=function(){a.get().$promise.then(function(e){p.captchaConfig=e})},t.widgetId=r.defer(),t.setWidgetId=function(e){t.widgetId.resolve(e)},p.submit=function(){if(t.voucherRedeemForm.$valid)return p.redeemInProgress=!0,a.get().$promise.then(function(e){return"hcaptcha"===e.provider?t.widgetId.promise.then(function(t){return s.executeWithConfig(t,e)}).then(p.redeem):p.redeem()})},p.redeem=function(e){u(p.voucherCode,e).then(function(e){return f(),c.update(),d(e)})["catch"](function(e){var r=e.data&&e.data.error;"purse.redeem.code.dont_exist"===r?t.$broadcast("remote-data-invalid","nonexistent"):"purse.redeem.code.already_redeemed"===r?t.$broadcast("remote-data-invalid","redeemed"):t.$broadcast("remote-data-invalid","failed")})["finally"](function(){p.redeemInProgress=!1})},t.$on(i.accordionClose,f),t.$watchGroup(["voucherRedeemForm.$invalid","voucherRedeemForm.$pristine","voucherRedeemForm.$submitted"],function(){t.$emit(i.accordionUpdate)})}],controllerAs:"VoucherRedeemController",templateUrl:"shop/voucher-redeem/voucher-redeem.html"}),angular.module("transactions",["locale","router","shop.purse","shop.service","shop.transactions.list","templates","voucher.redeem","web.pages"]).config(["$stateProvider",function(e){e.statePrivate("shop.transactions",{url:"/history",data:{title:"HEAD_TITLE_SHOP_HISTORY"},controller:"TransactionsController",controllerAs:"TransactionsController",resolve:{transactions:["Shop",function(e){return e.history().$promise}]},parent:"shop",templateUrl:"shop/transactions/transactions.html"})}]).controller("TransactionsController",["transactions",function(e){var t=this;t.items=e}]),angular.module("shop.transactions.list",["empty.results","locale","shop.transactions.history","templates"]).component("habboTransactionsList",{bindings:{transactions:"<"},controller:function(){var e=this;e.transactionLimit=10,e.showAll=function(){e.transactionLimit=1/0,e.hideShowAll=!0}},controllerAs:"TransactionsListController",templateUrl:"shop/transactions/transactions-list.html"}),angular.module("store",["category.filter","events","locale","router","shop.countries","shop.inventory","shop.purse","shop.service","shop.targeted.offer","templates","voucher.redeem","web.pages"]).config(["$stateProvider",function(e){e.statePublic("shop.store",{url:"?category",controller:"StoreController",controllerAs:"StoreController",data:{title:"HEAD_TITLE_SHOP"},resolve:{countries:["Shop",function(e){return e.countries().$promise}],inventory:["countryCode","Shop",function(e,t){return t.inventory({countryCode:e}).$promise}]},parent:"shop",templateUrl:"shop/store/store.html"})}]).controller("StoreController",["$interval","$location","$scope","$state","$stateParams","EVENTS","countries","inventory","scrolltop",function(e,t,r,n,o,a,i,s,l){var c,u=this;u.countries=i,u.offer=s.offer,u.inventory=s,u.selectedCategory=o.category,u.offer&&(c=e(function(){moment(u.offer.expirationDate).isBefore()&&(u.offer=null,e.cancel(c))},1e3)),r.$on("$stateChangeStart",function(e,t){l.setEnabled("shop.store"!==t.name)}),r.$on(a.securityLogin,function(){"/shop"===t.path()&&n.reload()})}]),angular.module("shop.footer",["locale","templates","zendesk.url"]).component("habboShopFooter",{templateUrl:"shop/shop-footer/shop-footer.html"}),angular.module("shop.countries",["locale","templates"]).component("habboShopCountries",{bindings:{country:"<",countries:"<"},controller:["$scope","$location",function(e,t){e.$watch("ShopCountriesController.country",function(e,r){var n=e&&e.countryCode||null,o=r&&r.countryCode||null;n&&n!==o&&t.search({country:n})})}],controllerAs:"ShopCountriesController",templateUrl:"shop/shop-countries/shop-countries.html"}),angular.module("purse.service",["ngResource","config"]).factory("purse",["$resource","CONFIG",function(e,t){var r={},n={creditBalance:"...",diamondBalance:"...",silverBalance:"...",habboClubDays:"...",buildersClubDays:"..."},o=e(t.shopUrl+"/purse");return r.get=function(){return n},r.update=function(){o.get().$promise.then(function(e){n=e})},r}]),angular.module("shop.purse",["config","locale","purse.service","templates"]).component("habboPurse",{controller:["$scope","purse",function(e,t){var r=this;t.update(),e.$watch(t.get,function(e){r.purse=e})}],controllerAs:"PurseController",templateUrl:"shop/purse/purse.html"}),angular.module("product.icon",["config","currency.service","templates"]).component("habboProductIcon",{bindings:{imageName:"@",itemPrice:"@",isDaily:"@",imageUrl:"@"},controller:["CONFIG","currencySplitter",function(e,t){var r=this;if(r.image=r.imageUrl?r.imageName:e.shopImagesUrl+r.imageName+".png","true"===r.isDaily){var n=t.split(r.itemPrice);r.amount=n.amount,r.currency=n.currency,r.currencyPositionStart=n.currencyPositionStart;var o=parseFloat(n.amount.replace(",","."));r.isZero=!isNaN(o)&&0===o}}],controllerAs:"ProductIconController",templateUrl:"shop/product-icon/product-icon.html"}),angular.module("prepaid",["compile","locale","router","shop.purse","shop.service","templates","voucher.redeem","web.pages"]).config(["$stateProvider",function(e){e.statePublic("shop.prepaid",{url:"/prepaid",controller:"PrepaidController",controllerAs:"PrepaidController",data:{title:"HEAD_TITLE_SHOP_PREPAID"},resolve:{countries:["Shop",function(e){return e.countries().$promise}],country:["countries","countryCode",function(e,t){return _(e).find({countryCode:t})||_(e).find({countryCode:"all"})||e[0]}],page:["country","webPages",function(e,t){return t.get("store/prepaid/prepaid_"+e.countryCode)}]},parent:"shop",templateUrl:"shop/prepaid/prepaid.html"})}]).controller("PrepaidController",["countries","country","page",function(e,t,r){var n=this;n.countries=e,n.country=t,n.page=r}]),angular.module("currency.title",["locale","templates"]).component("habboCurrencyTitle",{bindings:{amount:"@",doubleCredits:"@",title:"@"},controller:function(){var e=this;e.isDouble="true"===e.doubleCredits},controllerAs:"CurrencyTitleController",templateUrl:"shop/currency-title/currency-title.html"}),angular.module("currency.service",[]).factory("currencySplitter",function(){return{split:function(e){var t=/([^\d.,\s]+|\b[A-Z]{2,3}\b)?\s*([\d.,]+)\s*([^\d.,\s]+|\b[A-Z]{2,3}\b)?/,r=e.match(t),n="",o="",a=!1;return r&&(n=r[2].trim(),r[1]?(o=r[1].trim(),a=!0):r[3]&&(o=r[3].trim())),{amount:n,currency:o,currencyPositionStart:a}}}}),angular.module("credit.icon",["config","templates"]).component("habboCreditIcon",{bindings:{amount:"@",doubleCredits:"@",imageName:"@"},controller:["CONFIG",function(e){var t=[0,30,50,80,100,250,1e3],r=this;r.isDouble="true"===r.doubleCredits,r.image=e.shopImagesUrl+r.imageName+".png",r.getIndex=function(e){var r=_.curry(function(e,t){return e-1&&o.wallets.splice(t,1),o.disconnecting=!1})["catch"](function(){n.error("ERROR_ETHEREUM_DISCONNECT_FAILED"),o.disconnecting=!1})}}],controllerAs:"vm",templateUrl:"settings/wallet-settings/wallet-settings-form.html"}).directive("habboNftPerk",function(){return{restrict:"E",scope:{hasPerk:"=hasNft"},templateUrl:"settings/wallet-settings/wallet-settings-perk.html"}}).filter("ellipsis",function(){return function(e,t){return e.length>t?e.substring(0,t)+"...":e}}).directive("habboSpinner",function(){return{restrict:"E",scope:{size:"@"},templateUrl:"settings/wallet-settings/habbo-spinner.html"}}),angular.module("settings.wallet.session",["security.session.service","settings.wallet.service"]).factory("walletSession",["walletService","walletSessionUpdater",function(e,t){var r={};return r.update=function(){e.getRegisteredWallets().then(t.updateWallets)},r.update(),r}]).factory("walletSessionUpdater",["Session",function(e){var t={};return t.updateWallets=function(t){if(angular.isUndefined(t)||null===t||0===t.wallet_connections.length)return e.update({totalTokens:0,hasFurniturePerk:!1,avatarsWithPerks:{wallet_connections:[],accounts_with_avatar_perks:[]}});var r=t.wallet_connections.reduce(function(e,t){var r=e+=t.totalTokens;return r},0);return e.update({totalTokens:r,hasFurniturePerk:t.has_furniture_perk,avatarsWithPerks:t})},t}]),angular.module("service.ethers",["config","events"]).factory("ethersService",["$log","$q","$rootScope","$window","CONFIG","EVENTS",function(e,t,r,n,o,a){function i(){s.inited||(s.inited=!0,s.ethereum=n.ethereum,r.$broadcast(a.ethereumInitialized),n.removeEventListener("ethereum#initialized",i))}var s={eth:null,connected:!1,accounts:[],ethereum:null,inited:!1,isPresent:function(){return s.inited},getAddresses:function(){return s.connect().then(function(){return s.accounts})},sign:function(r,n){return s.connect().then(function(a){if(a){var i=s.eth.getSigner(n,o.ethereumNetwork);return e.debug("Signing using %s",n),i.signMessage(ethers.utils.toUtf8Bytes(r)).then(function(e){return e})["catch"](function(r){return e.warn("could not sign the nonce: ",r),t.reject("ethereum-sign-failed")})}return t.reject("ethereum-not-connected")})},connect:function(){return s.isPresent&ðers?(e.debug("getting accounts from ethereum"),s.ethereum.request({method:"eth_requestAccounts"}).then(function(r){return s.accounts=r,e.debug("Found accounts from ethereum",r),s.eth=new ethers.providers.Web3Provider(s.ethereum,o.ethereumNetwork),!(!s.accounts||0===s.accounts.length)||t.reject("ethereum-no-accounts")})["catch"](function(){return s.connected=!1,!1})):t.reject("ethereum-not-installed")},isAvailable:function(){return s.inited}};return n.ethereum?i():n.addEventListener("ethereum#initialized",i),s}]),angular.module("service.blockchain",["service.ethers","settings.wallet.service"]).factory("blockchain",["$q","ethersService","walletService",function(e,t,r){function n(){return t.isPresent()?o.currentWallet?e.resolve(o.currentWallet):t.getAddresses().then(function(e){return o.currentWallet=e.length>0?e[0]:null,o.currentWallet}):e.reject("not-installed")}var o={isInstalled:function(){return t.isPresent()},currentWallet:null};return o.getPublicAddress=n,o.register=function(n){return o.isInstalled?n?r.startWalletRegistration({publicAddress:n}).then(function(e){return t.sign(e.nonce,n)}).then(function(e){return r.finishWalletRegistration({signature:e,publicAddress:n})}).then(function(e){return e}):e.reject("ethereum-no-address"):e.reject("ethereum-no-install")},o.unregister=function(e){return r.disconnectWallet(e)},o.activeWallets=function(){return r.getRegisteredWallets()},o}]),angular.module("two.factor.auth.service",["config","google.analytics"]).factory("twoFactorAuth",["$http","CONFIG","googleAnalytics",function(e,t,r){var n={};return n.completeRegistration=function(n,o,a,i,s){return e.post(t.apiUrl+"/user/twofactor",{authenticatorCode:n,email:o,emailCode:a,secretCode:i,twoFactorMethod:s}).then(function(e){return r.trackEvent("2FA","Registration Completed"),e.data})},n.startRegistration=function(n,o){return e.post(t.apiUrl+"/user/twofactor/startregistration",{twoFactorMethod:n,securityEmail:o}).then(function(e){return r.trackEvent("2FA","Registration Started"),e.data})},n.disable=function(n,o){return e.post(t.apiUrl+"/user/twofactor/disable",{authenticatorCode:n,emailCode:o}).then(function(e){return r.trackEvent("2FA","2FA Disabled"),e.data})},n.enable=function(n,o){return e.post(t.apiUrl+"/user/twofactor/enable",{authenticatorCode:n,emailCode:o}).then(function(e){return r.trackEvent("2FA","2FA Enabled"),e.data})},n.completeReplace=function(n,o,a,i,s){return e.post(t.apiUrl+"/user/twofactor/replace",{authenticatorCode:n,emailCode:o,email:a,secretCode:i,twoFactorMethod:s}).then(function(e){return r.trackEvent("2FA","2FA Replace Complete"),e.data})},n.startReplace=function(n,o,a,i){return e.post(t.apiUrl+"/user/twofactor/startreplace",{twoFactorMethod:n,authenticatorCode:o,emailCode:a,email:i}).then(function(e){return r.trackEvent("2FA","2FA Replace Complete"),e.data})},n.sendEmailCode=function(){return e.post(t.apiUrl+"/user/twofactor/sendEmailCode").then(function(e){return r.trackEvent("2FA","2FA Email Code Sent"),e.data})},n.sendAuthenticatorBackupCode=function(){return e.post(t.apiUrl+"/force/twofactor/sendBackupEmailCode").then(function(e){return r.trackEvent("2FA","2FA Backup Code Sent"),e.data})},n.twoFactorEnabled=function(){return e.get(t.apiUrl+"/user/twofactor/twoFactorEnabled").then(function(e){return e.data})},n.emailAsBackupEnabled=function(){return e.get(t.apiUrl+"/force/twofactor/emailAsBackupEnabled").then(function(e){return e.data.enabled})},n}]),angular.module("two.factor.auth",["locale","router","templates","two.factor.auth.edit"]).config(["$stateProvider",function(e){e.statePrivate("settings.2fa",{url:"/2fa",parent:"settings",data:{title:"HEAD_TITLE_TWO_FACTOR_AUTH"},templateUrl:"settings/two-factor-auth/two-factor-auth.html"})}]),angular.module("two.factor.auth.edit",["locale","message.container","templates","two.factor.auth.disable.modal","two.factor.auth.register.authenticator.modal","two.factor.auth.register.email.modal","two.factor.auth.service"]).component("habboTwoFactorAuthEdit",{controller:["$translate","$window","twoFactorAuth","twoFactorAuthRegisterAuthenticatorModal","twoFactorAuthRegisterEmailModal","$log","twoFactorAuthDisableModal",function(e,t,r,n,o,a,i){var s=this;s.openRegisterAuthenticator=function(){n.open().then(function(){s.loadTwoFactorAuthStatus()})},s.openRegisterEmail=function(){o.open().then(function(){s.loadTwoFactorAuthStatus()})},s.openDisable=function(){i.open(s.twoFactorAuthStatus)["finally"](function(){s.loadTwoFactorAuthStatus()})},s.loadTwoFactorAuthStatus=function(){r.twoFactorEnabled().then(function(e){s.twoFactorAuthStatus=e})["catch"](function(e){a.info("Error"),a.info(e)})["finally"](function(){s.inProgress=!1})},s.loadTwoFactorAuthStatus()}],controllerAs:"TwoFactorAuthEditController",templateUrl:"settings/two-factor-auth/two-factor-auth-edit.html"}),angular.module("privacy.settings",["locale","privacy.settings.form","privacy.settings.service","router","templates"]).config(["$stateProvider",function(e){e.statePrivate("settings.privacy",{url:"/privacy",controller:"PrivacySettingsController",controllerAs:"PrivacySettingsController",parent:"settings",data:{title:"HEAD_TITLE_PRIVACY_SETTINGS"},resolve:{privacySettings:["PrivacySettings",function(e){return e.get()}]},templateUrl:"settings/privacy-settings/privacy-settings.html"})}]).controller("PrivacySettingsController",["privacySettings",function(e){var t=this;t.privacySettings=e}]),angular.module("privacy.settings.form",["account.security.service","gdpr.safety.questions.modal","google.analytics","locale","notifier","privacy.settings.service","security.session.service","templates"]).component("habboPrivacySettingsForm",{bindings:{privacySettings:"="},controller:["$scope","$q","$window","accountSecurity","googleAnalytics","notifier","gdprSafetyQuestionsModal","PrivacySettings","Session",function(e,t,r,n,o,a,i,s,l){function c(e){var t=e.status?e.data.error:e.message;"safety-lock-required"===t?a.error("ERROR_GDPR_SAFETYLOCK_REQUIRED"):"verified-email-required"===t?a.error("ERROR_VERIFIED_EMAIL_REQUIRED"):"invalid_password"===t?a.error("ERROR_INCORRECT_PASSWORD"):"safetylock.invalid_answer"===t?a.error("ERROR_SAFETY_LOCK_ANSWER"):a.error("ERROR_SERVER")}function u(e){return t.when().then(function(){return n.status()}).then(function(r){return"disabled"===r?t.reject(new Error("safety-lock-required")):i.open(e)}).then(function(e){d.privacySettings=_.assign(d.privacySettings,e)})}function f(){delete d.privacySettings.selectedQuestion1,delete d.privacySettings.selectedQuestion2,delete d.privacySettings.answer1,delete d.privacySettings.answer2,delete d.privacySettings.password}var d=this;d.$onInit=function(){d.isGdprSubmitted=angular.isDefined(d.privacySettings.gdprRequestType)},d.viewGdprData=function(){t.when().then(function(){return n.status()}).then(function(e){return"disabled"===e?t.reject(new Error("safety-lock-required")):l.isHabboSessionWithEmail()?i.open("view"):{}}).then(s.getProcessedGdprDataUrl).then(function(e){d.gdprDownloadUrl=e.data.url})["catch"](c)},d.save=function(){return e.privacySettingsForm.$pristine?void a.success("SETTINGS_SAVED_OK"):void t.when().then(function(){d.sendInProgress=!0}).then(function(){if(!d.isGdprSubmitted&&angular.isDefined(d.privacySettings.gdprRequestType)&&l.isHabboSessionWithEmail())return l.isEmailVerified()?u(d.privacySettings.gdprRequestType):t.reject(new Error("verified-email-required"))}).then(function(){return d.isGdprSubmitted&&!d.privacySettings.gdprRequestCancelled&&(d.privacySettings.gdprRequestType=null),d.privacySettings.offlineMessagingEnabled=!0,s.save(d.privacySettings)}).then(function(){!d.isGdprSubmitted&&angular.isDefined(d.privacySettings.gdprRequestType)?d.isGdprSubmitted=!0:d.isGdprSubmitted&&d.privacySettings.gdprRequestCancelled&&(d.isGdprSubmitted=!1,d.privacySettings.gdprRequestCancelled=!1,d.privacySettings.gdprRequestType=null),o.trackEvent("Privacy settings","Saved"),a.success("SETTINGS_SAVED_OK"),e.privacySettingsForm.$setPristine()})["catch"](c)["finally"](function(){f(),d.sendInProgress=!1})}}],controllerAs:"$ctrl",templateUrl:"settings/privacy-settings/privacy-settings-form.html"}),angular.module("privacy.settings.service",["config"]).factory("PrivacySettings",["$http","CONFIG",function(e,t){var r={};return r.get=function(){return e.get(t.apiUrl+"/user/preferences").then(function(e){return e.data})},r.save=function(r){return e.post(t.apiUrl+"/user/preferences/save",r)},r.getProcessedGdprDataUrl=function(r){return e.post(t.apiUrl+"/user/preferences/gdpr_data_url",r)},r}]),angular.module("password.change",["locale","password.change.form","router","templates"]).config(["$stateProvider",function(e){e.stateHabboAccountTrusted("settings.password",{url:"/password",parent:"settings",data:{title:"HEAD_TITLE_PASSWORD_CHANGE"},templateUrl:"settings/password-change/password-change.html"})}]),angular.module("password.change.form",["form","locale","notifier","security","settings.service","templates"]).component("habboPasswordChangeForm",{controller:["$scope","CAPTCHA_EVENTS","Session","notifier","settings",function(e,t,r,n,o){function a(){e.changePasswordForm.$setPristine(),i.passwords={}}var i=this;i.user=r.user,i.updateInProgress=!1,i.passwords={},i.update=function(){e.changePasswordForm.$valid&&(i.updateInProgress=!0,o.changePassword(i.passwords).then(function(){e.$broadcast(t.reset),a(),n.success("PASSWORD_CHANGE_SUCCESS")})["catch"](function(r){if(e.$broadcast(t.reset),409===r.status){var o=r.data&&r.data.error;"password.used_earlier"===o?e.$broadcast("remote-data-invalid","passwordUsed"):"password.too_similar_to_username"===o?e.$broadcast("remote-data-invalid","passwordName"):"password.too_similar_to_email"===o?e.$broadcast("remote-data-invalid","passwordEmail"):e.$broadcast("remote-data-invalid","password")}else 403!==r.status&&n.error("ERROR_SERVER")})["finally"](function(){i.updateInProgress=!1}))}}],controllerAs:"PasswordChangeFormController",templateUrl:"settings/password-change/password-change-form.html"}),angular.module("email.change",["activation.status","email.change.form","locale","router","templates"]).config(["$stateProvider",function(e){e.stateHabboAccountTrusted("settings.email",{url:"/email",parent:"settings",data:{title:"HEAD_TITLE_EMAIL_CHANGE"},templateUrl:"settings/email-change/email-change.html"})}]),angular.module("email.change.form",["form","locale","notifier","security","settings.service","templates"]).component("habboEmailChangeForm",{controller:["$scope","CAPTCHA_EVENTS","Session","notifier","settings",function(e,t,r,n,o){function a(){e.emailChangeForm.$setPristine(),i.emailChangeData={}}var i=this;i.user=r.user,i.updateInProgress=!1,i.emailChangeData={},i.update=function(){e.emailChangeForm.$valid&&(i.updateInProgress=!0,o.changeEmail(i.emailChangeData).then(function(){e.$broadcast(t.reset),a(),n.success("EMAIL_CHANGE_SUCCESS")})["catch"](function(r){e.$broadcast(t.reset);var o=r.data&&r.data.error;"registration_email"===o||"changeEmail.invalid_email"===o?e.$broadcast("remote-data-invalid","emailInvalid"):"changeEmail.email_already_in_use"===o?e.$broadcast("remote-data-invalid","emailUsedInChange"):"changeEmail.invalid_password"===o?e.$broadcast("remote-data-invalid","password"):403!==r.status&&n.error("ERROR_SERVER")})["finally"](function(){i.updateInProgress=!1}))}}],controllerAs:"EmailChangeFormController",templateUrl:"settings/email-change/email-change-form.html"}),angular.module("avatar.service",["config","google.analytics","security"]).factory("avatar",["$http","$q","CONFIG","Session","googleAnalytics",function(e,t,r,n,o){var a={};return a.query=function(){return e.get(r.apiUrl+"/user/avatars").then(function(e){return e.data})},a.create=function(t,a){var i={name:t};return a&&(i.captchaToken=a),e.post(r.apiUrl+"/user/avatars",i).then(function(e){return o.trackEvent("Avatar","Created"),n.update(e.data),e.data})},a.isNameAvailable=function(n){return e.get(r.apiUrl+"/user/avatars/check-name?name="+n).then(function(e){return e.data.isAvailable?t.when():t.reject()})},a.select=function(t){return e.post(r.apiUrl+"/user/avatars/select",t).then(function(e){return o.trackEvent("Avatar","Changed"),n.update(e.data),e.data})},a}]),angular.module("avatar.selection",["avatar.create","avatar.search","avatar.service","locale","router","security","templates"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePrivate("settings.avatar",{url:"/avatars",parent:"settings",controller:"AvatarSelectionController",controllerAs:"AvatarSelectionController",data:{title:"HEAD_TITLE_AVATAR_SELECTION"},resolve:{avatars:["avatar",function(e){return e.query()}]},templateUrl:"settings/avatar-selection/avatar-selection.html"}),t.when("/avatars","/settings/avatars")}]).controller("AvatarSelectionController",["avatars",function(e){var t=this;t.avatars=e}]),angular.module("trusted.locations.reset",["account.security.service","locale","notifier","templates"]).component("habboTrustedLocationsReset",{controller:["$translate","$window","accountSecurity","notifier",function(e,t,r,n){function o(){r.reset().then(function(){n.success("ACCOUNT_SECURITY_TRUSTED_LOGINS_RESET_OK")})["catch"](function(e){403!==e.status&&n.error("ERROR_SERVER")})["finally"](function(){a.inProgress=!1})}var a=this;a.reset=function(){a.inProgress=!0,e("ACCOUNT_SECURITY_RESET_LOCATIONS_CONFIRMATION").then(function(e){t.confirm(e)?o():a.inProgress=!1})}}],controllerAs:"TrustedLocationsResetController",templateUrl:"settings/account-security/trusted-locations-reset.html"}),angular.module("account.security.service",["config","google.analytics"]).factory("accountSecurity",["$http","CONFIG","googleAnalytics",function(e,t,r){var n={};return n.status=function(){return e.get(t.apiUrl+"/safetylock/featureStatus").then(function(e){return e.data})},n.save=function(n,o,a,i,s){return e.post(t.apiUrl+"/safetylock/save",{questionId1:n,answer1:o,questionId2:a,answer2:i,password:s}).then(function(){r.trackEvent("Safety lock","Questions saved")})},n.disable=function(n){return e.post(t.apiUrl+"/safetylock/disable",n).then(function(){r.trackEvent("Safety lock","Disabled")})},n.reset=function(){return e.get(t.apiUrl+"/safetylock/resetTrustedLogins").then(function(){r.trackEvent("Safety lock","Trusted locations reset")})},n}]),angular.module("account.security",["account.security.edit","account.security.service","locale","router","templates","trusted.locations.reset"]).config(["$stateProvider",function(e){e.state("settings.security",{url:"/security",controller:"AccountSecurityController",controllerAs:"AccountSecurityController",parent:"settings",data:{title:"HEAD_TITLE_ACCOUNT_SECURITY"},resolve:{accountSecurityStatus:["accountSecurity",function(e){return e.status()}]},templateUrl:"settings/account-security/account-security.html"})}]).controller("AccountSecurityController",["accountSecurityStatus",function(e){var t=this;t.accountSecurityStatus=e}]),angular.module("account.security.edit",["account.security.service","locale","message.container","notifier","safety.lock.disable.modal","safety.questions.modal","templates"]).component("habboAccountSecurityEdit",{bindings:{accountSecurityStatus:"="},controller:["$translate","$window","accountSecurity","notifier","safetyQuestionsModal","safetyLockDisableModal",function(e,t,r,n,o,a){var i=this;i.modal=o,i.openEditModal=function(){o.open().then(function(){i.accountSecurityStatus="enabled"})},i.openDisableModal=function(){a.open().then(function(){i.accountSecurityStatus="disabled"})}}],controllerAs:"AccountSecurityEditController",templateUrl:"settings/account-security/account-security-edit.html"}),angular.module("security.require.session",["security.session"]).directive("habboRequireSession",["Session","ngIfDirective",function(e,t){var r=t[0];return{restrict:"A",priority:r.priority,terminal:r.terminal,transclude:r.transclude,link:function(t,n,o){o.ngIf=function(){return e.hasSession()},r.link.apply(r,arguments)}}}]).directive("habboRequireNoSession",["Session","ngIfDirective",function(e,t){var r=t[0];return{restrict:"A",priority:r.priority,terminal:r.terminal,transclude:r.transclude,link:function(t,n,o){o.ngIf=function(){return!e.hasSession()},r.link.apply(r,arguments)}}}]),angular.module("security.require.non.staff.account.session",["security.session"]).directive("habboRequireNonStaffAccountSession",["Session","ngIfDirective",function(e,t){var r=t[0];return{restrict:"A",priority:r.priority,terminal:r.terminal,transclude:r.transclude,link:function(t,n,o){o.ngIf=function(){return!e.isStaff()},r.link.apply(r,arguments)}}}]),angular.module("security.require.habbo.session.with.email",["security.session"]).directive("habboRequireHabboSessionWithEmail",["Session","ngIfDirective",function(e,t){var r=t[0];return{restrict:"A",priority:r.priority,terminal:r.terminal,transclude:r.transclude,link:function(t,n,o){o.ngIf=function(){return e.isHabboSessionWithEmail()},r.link.apply(r,arguments)}}}]),angular.module("security.session",["security.require.habbo.session.with.email","security.require.non.staff.account.session","security.require.session","security.session.service"]),angular.module("security.session.store",[]).factory("SessionStore",["$window",function(e){var t={};return t.create=function(t){try{e.sessionStorage.setItem("session",angular.toJson(t))}catch(r){}},t.get=function(){try{var t=e.sessionStorage.getItem("session");return t?angular.fromJson(t):null}catch(r){return null}},t.destroy=function(){try{e.sessionStorage.removeItem("session")}catch(t){}},t}]),angular.module("security.session.service",["config","events","security.ga.session","security.session.store"]).factory("Session",["$rootScope","CONFIG","EVENTS","GaSession","SessionStore",function(e,t,r,n,o){var a={};return a.user=null,a.init=function(e){if(e=e||o.get())return a.create(e)},a.create=function(t){if(a.user=t,a.user.gdprPopup){var i=a.user.gdprPopup;delete a.user.gdprPopup,e.$emit(r.gdprNotification,i)}return n.create(a.user),o.create(a.user),e.$broadcast(r.securityLogin),a.user},a.update=function(e){return angular.extend(a.user,e),n.create(a.user),o.create(a.user),a.user},a.hasSession=function(){return Boolean(a.user)},a.isTrusted=function(){return a.hasSession()&&Boolean(a.user.trusted)},a.isEmailVerified=function(){return a.isHabboSessionWithEmail()&&Boolean(a.user.emailVerified)},a.isHabboSessionWithEmail=function(){return a.hasSession()&&"fblogin"!==a.user.email&&"rpxlogin"!==a.user.email},a.hasVerifiedHabboCredential=function(){return a.hasSession()&&"HABBO"===a.user.identityType&&Boolean(a.user.emailVerified)},a.isTestUser=function(){return"hhs1"===t.hotel&&a.hasSession()&&a.user.email&&(_(a.user.email).includes("@dev.habbo.fi")||_(a.user.email).includes("@test.habbo.fi"))},a.isCurrentUser=function(e){return a.hasSession()&&a.user.uniqueId===e},a.destroy=function(){o.destroy()},a.isStaff=function(){return a.hasSession()&&_.includes(a.user.traits,"STAFF")},a}]),angular.module("security.ga.session",["angular-md5"]).factory("GaSession",["$window","md5",function(e,t){var r={};return r.create=function(r){try{e.ga("set","userId",t.createHash(r.identityId.toString()))}catch(n){}},r}]),angular.module("security.safety.lock.service",["config","google.analytics","security"]).factory("safetyLock",["$http","$location","CONFIG","Session","googleAnalytics",function(e,t,r,n,o){var a={};return a.getQuestions=function(){return e.get(r.apiUrl+"/safetylock/questions")},a.unlock=function(a){return e.post(r.apiUrl+"/safetylock/unlock",a).then(function(){var e={trusted:!0};return n.hasSession()&&n.update(e),o.trackEvent("Safety lock","Unlocked",t.path()),e})},a}]),angular.module("security.safety.lock",["security.safety.lock.form","security.safety.lock.service","templates","ui.bootstrap"]).controller("SafetyLockController",["questions",function(e){var t=this;t.questions=e.data}]).factory("safetyLockModal",["$uibModal","safetyLock",function(e,t){var r,n={};return n.open=function(){return r=e.open({controller:"SafetyLockController",controllerAs:"SafetyLockController",resolve:{questions:t.getQuestions},templateUrl:"security/safety-lock/safety-lock-modal.html"}),r.result},n.isOpen=function(){return Boolean(r)&&r.open},n}]),angular.module("security.safety.lock.form",["form","locale","notifier","security.safety.lock.service","templates"]).directive("habboSafetyLockForm",["notifier","safetyLock",function(e,t){return{restrict:"E",scope:{questions:"=",onUnlock:"&",onCancel:"&"},templateUrl:"security/safety-lock/safety-lock-form.html",link:function(r){r.answers={trust:!1},r.unlockingInProgress=!1,r.isTrustedLocationEnabled=!0,r.unlock=function(){r.safetyLockForm.$valid&&(r.unlockingInProgress=!0,t.unlock(r.answers).then(r.onUnlock)["catch"](function(t){var n=t.status;409===n?r.$broadcast("remote-data-invalid","answer"):429===n?e.error("ERROR_TOO_MANY_ATTEMPTS",{time:moment(t.data.nextValidRequestDate).fromNow(!0)}):e.error("ERROR_SERVER")})["finally"](function(){r.unlockingInProgress=!1}))}}}}]),angular.module("security.safety.answering.modal",["locale","security.safety.answering.form","templates","ui.bootstrap"]).controller("SafetyAnsweringController",["data","questions","targetAction",function(e,t,r){var n=this;n.questions=t,n.data=e,n.targetAction=r}]).factory("safetyAnsweringModal",["$uibModal",function(e){var t={};return t.open=function(t,r,n){return e.open({controller:"SafetyAnsweringController",controllerAs:"SafetyAnsweringController",resolve:{questions:_.constant(t),data:_.constant(r),targetAction:_.constant(n)},templateUrl:"security/safety-lock/safety-answering-modal.html"}).result},t}]),angular.module("security.safety.answering.form",["form","locale","notifier","templates"]).directive("habboSafetyAnsweringForm",["notifier",function(e){return{restrict:"E",scope:{data:"=",questions:"=",targetAction:"&",onSuccess:"&",onCancel:"&"},templateUrl:"security/safety-lock/safety-lock-form.html",link:function(t){t.answers={},t.unlockingInProgress=!1,t.isTrustedLocationEnabled=!1,t.unlock=function(){t.safetyLockForm.$valid&&(t.unlockingInProgress=!0,_.assign(t.data,t.answers),t.targetAction({data:t.data}).then(t.onSuccess)["catch"](function(r){var n=r.status;409===n?t.$broadcast("remote-data-invalid","answer"):429===n?e.error("ERROR_TOO_MANY_ATTEMPTS",{time:moment(r.data.nextValidRequestDate).fromNow(!0)}):e.error("ERROR_SERVER")})["finally"](function(){t.unlockingInProgress=!1}))}}}}]),angular.module("security.rpx.service",["config"]).factory("rpxSecurity",["$document","$window","CONFIG",function(e,t,r){var n,o={};return o.init=function(){t.janrain={},t.janrain.settings={},t.janrain.settings.language=r.rpxLocale,t.janrain.settings.tokenUrl=r.rpxTokenUrl,t.janrain.ready=!0,n=e[0].createElement("script"),n.id="janrainAuthWidget",n.src="https://rpxnow.com/js/lib/login.habbo.com/engage.js",e[0].body.appendChild(n)},o.destroy=function(){n&&(angular.element(n).remove(),angular.element('script[src^="https://d29usylhdk1xyu.cloudfront.net"]').remove(),angular.element("#janrainModal, #janrainModalOverlay").remove(),delete t.janrain)},o}]),angular.module("security.rpx.message",["notifier"]).factory("rpxMessage",["notifier",function(e){var t={},r="💩",n="🐳",o="🙊";return t.show=function(t){switch(t){case r:e.error("LOGIN_RPX_REGISTRATION_DISABLED");break;case n:e.error("ERROR_SERVER_MAINTENANCE");break;case o:e.error("ERROR_SERVER")}},t}]).run(["$location","rpxMessage",function(e,t){t.show(e.search().error)}]),angular.module("security.rpx",["security.rpx.message","security.rpx.service"]),angular.module("security.login.shake",[]).constant("LOGIN_EVENTS",{invalidCredentials:"login-invalid-credentials"}).directive("habboShake",["LOGIN_EVENTS",function(e){return{restrict:"A",link:function(t,r){t.$on(e.invalidCredentials,function(){var e=angular.element(".modal-dialog"),t=e.is(":visible")?e:r;t.addClass("animated shake").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){t.removeClass("animated shake")})})}}}]),angular.module("security.login",["security.login.form","templates","ui.bootstrap"]).factory("loginModal",["$uibModal",function(e){var t,r={};return r.open=function(){return t=e.open({templateUrl:"security/login/login-modal.html"}),t.result},r.isOpen=function(){return Boolean(t)&&t.open},r}]),angular.module("security.login.form",["air.download.link","captcha.modal","claim.password","form","hCAPTCHA","locale","notifier","recover.password.modal","security.apple.connect","security.facebook.connect","security.google.connect","security.login.rpx","security.login.shake","security.service","templates"]).component("habboLoginForm",{bindings:{onLogin:"&"},controller:["$element","$location","$scope","$q","$window","LOGIN_EVENTS","CaptchaConfig","captchaModal","hCaptchaService","notifier","recoverPasswordModal","security",function(e,t,r,n,o,a,i,s,l,c,u,f){function d(){s.open().then(function(e){h({email:g.email,password:g.password,captchaToken:e})})}function h(e){f.login(e).then(g.onLogin)["catch"](p)["finally"](function(){g.loginInProgress=!1})}function p(e){var t=e.status,r=e.data&&e.data.message;b=Boolean(e.data&&e.data.captcha),401===t?"login.staff_login_not_allowed"===r?c.error("ERROR_LOGIN_STAFF_NOT_ALLOWED"):"invalid-captcha"===r?d():m():429===t?c.error("ERROR_TOO_MANY_ATTEMPTS",{time:moment(e.data.nextValidRequestDate).fromNow(!0)}):"force.pending"!==t&&c.error("ERROR_SERVER")}function m(){v++,v===y?(y*=2,u.open(g.email)):(r.$broadcast(a.invalidCredentials),r.$broadcast("remote-data-invalid","credentials"))}var g=this,b=!1,v=0,y=2;g.loginInProgress=!1,g.captchaConfig={provider:null},g.token=null,g.$onInit=function(){i.get({action:"login"}).$promise.then(function(e){g.captchaConfig=e})},r.widgetId=n.defer(),r.setWidgetId=function(e){r.widgetId.resolve(e)},g.submit=function(){return g.loginInProgress=!0,i.get({action:"login"}).$promise.then(function(e){return"hcaptcha"===e.provider?r.widgetId.promise.then(function(t){return l.executeWithConfig(t,e)}).then(g.login):g.login(g.token)})},g.login=function(r){ g.email=e.find("[type=email]").val(),g.password=e.find("[type=password]").val();var n=r||t.search().captchaToken||o.captchaToken;n?h({email:g.email,password:g.password,captchaToken:n}):b?d():h({email:g.email,password:g.password})}}],controllerAs:"LoginController",templateUrl:"security/login/login-form.html"}),angular.module("security.gdpr.notification",["events","locale","notifier"]).run(["$rootScope","EVENTS","notifier",function(e,t,r){e.$on(t.gdprNotification,function(e,t){function n(e,t,r){e(t,r)}"download"===t?n(r.success,"GDPR_REQUEST_READY_NOTIFICATION_TITLE","GDPR_REQUEST_READY_MESSAGE"):"erasure"===t&&n(r.errorSticky,"GDPR_ERASURE_SUBMITTED_NOTIFICATION_TITLE","GDPR_ERASURE_SUBMITTED_MESSAGE")})}]),angular.module("security.use.force.service",["security.force.email.modal","security.force.password.modal","security.force.rpx.modal","security.force.service","security.force.tos.modal","security.force.twofactor.app.modal","security.force.twofactor.blacklist.modal","security.force.twofactor.email.modal","security.safety.lock"]).factory("useForce",["$q","FORCE","forceEmailModal","forcePasswordModal","forceRpxMigrationModal","forceTOSModal","forceTwoFactorAppModal","forceTwoFactorBlacklistModal","forceTwoFactorEmailModal","safetyLockModal",function(e,t,r,n,o,a,i,s,l,c){function u(e,t){return function(r){var n=r&&r.force;return _.includes(n,e)?t(r):r}}function f(e){return d(e).then(n.open)}function d(t){return t.trusted?e.when(t):c.open().then(function(e){return _.assign(t,e)})}var h={};return h.handleForces=function(n){return e.when(n).then(u(t.email,r.open)).then(u(t.password,f)).then(u(t.TOS,a.open)).then(u(t.RPX_MIGRATION,o.open)).then(u(t.TWO_FACTOR_BLACKLISTED_EMAIL,s.open)).then(u(t.TWO_FACTOR_AUTH_APP_CODE,i.open)).then(u(t.TWO_FACTOR_AUTH_EMAIL_CODE,l.open))},h}]),angular.module("security.force.service",["config","google.analytics"]).constant("FORCE",{email:"EMAIL",password:"PASSWORD",TOS:"TOS",RPX_MIGRATION:"RPX_MIGRATION",TWO_FACTOR_AUTH_EMAIL_CODE:"TWO_FACTOR_AUTH_EMAIL_CODE",TWO_FACTOR_AUTH_APP_CODE:"TWO_FACTOR_AUTH_APP_CODE",TWO_FACTOR_BLACKLISTED_EMAIL:"TWO_FACTOR_BLACKLISTED_EMAIL"}).factory("force",["$http","CONFIG","googleAnalytics",function(e,t,r){var n={};return n.changeEmail=function(n){return e.post(t.apiUrl+"/force/email-change",{newEmail:n}).then(function(e){return r.trackEvent("Email","Forced change"),e.data})},n.verify2fa=function(n,o,a){return e.post(t.apiUrl+"/force/verify2fa",{twoFactorMethod:n,twoFactorCode:o,setLocationTrusted:a}).then(function(e){return r.trackEvent("2FA","Verify"),e.data})},n.rpxMigration=function(n,o){return e.post(t.apiUrl+"/force/rpx-migration",{newEmail:n,newPassword:o}).then(function(e){return r.trackEvent("Rpx","Forced Migration"),e.data})},n.changePassword=function(n){return e.post(t.apiUrl+"/force/password-change",{newPassword:n}).then(function(e){return r.trackEvent("Password","Forced change"),e.data})},n.acceptTOS=function(){return e.post(t.apiUrl+"/force/tos-accept").then(function(e){return r.trackEvent("TOS","Forced accept"),e.data})},n.clearBlacklist=function(){return e.post(t.apiUrl+"/force/2fablacklist").then(function(e){return r.trackEvent("2FA","Clear Blacklist"),e.data})},n}]),angular.module("security.fingerprint",["security.fingerprint.interceptor","security.fingerprint.service.init"]),angular.module("security.fingerprint.service",[]).factory("fingerprint",["$window",function(e){var t={},r="pretender"===e.__PRERENDER_INJECTED__;return t.getFingerprint=function(){return t.fingerprint},t.calculateFingerprint=function(){return r?void(t.fingerprint=""):void(new Fingerprint2).get(function(e){t.fingerprint=e})},t}]),angular.module("security.fingerprint.service.init",["security.fingerprint.service"]).run(["fingerprint",function(e){e.calculateFingerprint()}]),angular.module("security.fingerprint.service.mock",[]).factory("fingerprint",function(){var e={};return e.getFingerprint=function(){return e.fingerprint},e.calculateFingerprint=_.noop,e}),angular.module("security.fingerprint.interceptor",["config","security.fingerprint.service"]).factory("fingerprintInterceptor",["CONFIG","fingerprint",function(e,t){var r={};return r.request=function(r){return t.getFingerprint()&&_(r.url).includes(e.apiUrl)&&(r.headers["x-habbo-fingerprint"]=t.getFingerprint()),r},r}]).config(["$httpProvider",function(e){e.interceptors.push("fingerprintInterceptor")}]),angular.module("spinner",["security","templates","ui.bootstrap","ui.router"]).factory("spinner",["$rootScope","$timeout","$uibModal","loginModal","safetyLockModal",function(e,t,r,n,o){function a(){t.cancel(c),l||(c=t(s,200))}function i(){t.cancel(c),l&&(l.close(),l=null,u=!0)}function s(){n.isOpen()||o.isOpen()||(l=r.open({animation:!1,backdrop:"static",backdropClass:u?"spinner-backdrop--transparent":"spinner-backdrop--solid",keyboard:!1,templateUrl:"router/spinner/spinner.html",windowClass:u?"spinner spinner--transparent":"spinner spinner--solid"}))}var l,c,u=!1,f={};return f.init=function(){s(),e.$on("$stateChangeStart",a),e.$on("$stateChangeSuccess",i),e.$on("$stateChangeError",i)},f}]).component("inlineSpinner",{templateUrl:"router/spinner/inline-spinner.html"}),angular.module("scrolltop",["ui.router"]).factory("scrolltop",function(){var e={};return e.enabled=!0,e.setEnabled=function(e){this.enabled=e},e.isEnabled=function(){return this.enabled},e}).run(["$rootScope","$window","scrolltop",function(e,t,r){e.$on("$viewContentLoaded",function(){r.isEnabled()&&t.scrollTo(0,0)})}]),angular.module("prerender.status.code",[]).directive("prerenderStatusCode",["$location",function(e){return{restrict:"A",link:function(t,r,n){var o=e.absUrl();t.$on("$stateChangeStart",function(e,t){t.resolve&&t.resolve.auth&&n.$set("content",401)}),t.$on("$stateChangeSuccess",function(t,r){"notFound"===r.name?n.$set("content",404):n.$set("content",o===e.absUrl()?200:301)}),t.$on("$stateChangeError",function(){n.$set("content",404)})}}}]),angular.module("prerender.ready",[]).run(["$browser","$timeout","$window",function(e,t,r){e.notifyWhenNoOutstandingRequests(function(){t(function(){r.prerenderReady=!0})})}]),angular.module("prerender.header",[]).directive("prerenderHeader",["$location",function(e){return{restrict:"A",link:function(t,r,n){var o=e.absUrl();t.$on("$stateChangeSuccess",function(t,r){var a=e.absUrl();"notFound"!==r.name&&o!==a&&n.$set("content","Location: "+a)})}}}]),angular.module("prerender",["prerender.header","prerender.ready","prerender.status.code"]),angular.module("head.title",["ngSanitize","head.service"]).directive("title",["$sanitize","Head",function(e,t){return{restrict:"E",link:function(r,n){function o(t){var r=e(t);n.html(r)}r.$watch(t.getFullTitle,o)}}}]),angular.module("head",["head.content","head.service","head.title","head.url"]),angular.module("head.url",[]).directive("habboHeadUrl",["$location",function(e){return{restrict:"A",link:function(t,r,n){function o(){return e.absUrl()}function a(e){n.$set(n.habboHeadUrl,e)}t.$watch(o,a)}}}]),angular.module("head.content",["head.service"]).constant("META_ATTRS",{"og:title":"title","og:description":"description","og:image":"image","og:image:height":"imageHeight","og:image:width":"imageWidth","twitter:title":"title","twitter:description":"description","twitter:card":"twitter:card","twitter:image":"image",name:"title",description:"description",image:"image"}).directive("content",["Head","META_ATTRS",function(e,t){return{restrict:"A",link:function(r,n,o){function a(){return e[s]}function i(e){o.$set("content",e)}var s=t[o.name||o.property||o.itemprop];s&&r.$watch(a,i)}}}]),angular.module("head.service",["locale","ui.router"]).constant("HEAD_DEFAULTS",{title:"Habbo",description:"Habbo on yksi maailman suosituimmista virtuaalimaailmoista! Tapaa uusia tyyppejä ja ystävysty heihin. Hengaa lukemattomissa käyttäjien luomissa roolipeliryhmissä. On sairaaloja, poliisiasemia, tiedustelupalveluja... Jokaiselle löytyy jotakin.",image:"https://images.habbo.com/habbo-web/america/fi/assets/images/app_summary_image-1200x628.3bc8bbb2.png",imageHeight:628,imageWidth:1200,"twitter:card":"summary_large_image"}).factory("Head",["$translate","HEAD_DEFAULTS",function(e,t){var r={},n=" - Habbo";return r.setDefaults=function(){r.title=t.title,r.title=t.title,r.description=t.description,r.image=t.image,r.imageHeight=t.imageHeight,r.imageWidth=t.imageWidth,r["twitter:card"]=t["twitter:card"]},r.set=function(e,t){var n=e||{};n.title&&r.setTitle(n.title,t),n.description&&(r.description=n.description),n.image&&(r.image=n.image),n.imageHeight&&(r.imageHeight=n.imageHeight),n.imageWidth&&(r.imageWidth=n.imageWidth),n["twitter:card"]&&(r["twitter:card"]=n["twitter:card"])},r.setTitle=function(t,n){e(t,n).then(function(e){r.title=e})},r.getFullTitle=function(){return"Habbo"===r.title?r.title:r.title+n},r}]).run(["$rootScope","Head",function(e,t){e.$on("$stateChangeStart",function(){t.setDefaults()}),e.$on("$stateChangeSuccess",function(e,r,n){t.set(r.data,n)})}]),angular.module("ban.error",["ban.message","ban.redirect"]),angular.module("ban.redirect",["locale","security"]).factory("banRedirect",["$injector","$q",function(e,t){function r(e){var t=e.status,r=e.data&&e.data.message;return(403===t||401===t)&&n(r)}function n(e){return _.includes(i,e)}function o(t){var r=t.data;return a=a||e.get("security"),a.forceLogout("/?error=banned&"+$.param(r))}var a,i=["login.user_banned","login.identity_banned","login.avatar_banned","user.identity_banned","user.avatar_banned"],s={};return s.responseError=function(e){return r(e)?o(e):t.reject(e)},s}]).config(["$httpProvider",function(e){e.interceptors.push("banRedirect")}]),angular.module("ban.message",["locale","notifier"]).factory("banMessage",["dateFilter","notifier",function(e,t){function r(e,t,r){var n=_(e).includes("avatar_banned")?"USER_AVATAR":"USER_IDENTITY";return n+=t?"_PERMANENT_BAN_TEXT":"_BAN_TEXT",r&&(n+="_WITH_GUIDE"),n}var n={};return n.show=function(n){function o(){var e=n.localizedMessage,t=new Date(Number(n.banExpirySeconds)),r=t.getDate()+"/"+(t.getMonth()+1)+"/"+t.getFullYear();return e.replace("{expiryDate}",r)}if("banned"===n.error)if(n.localizedMessage)t.errorStickyRawMessage(o(),"USER_BAN_TITLE");else{var a=n.expiryTime,i={message:n.message,avatarName:n.avatarName,reason:n.reason,expiryTime:a?e(a,"short"):a,permanentBan:"true"===n.permanentBan,provideExtraSupport:"true"===n.provideExtraSupport},s=r(i.message,i.permanentBan,i.provideExtraSupport);t.errorSticky("USER_BAN_TITLE",s,i)}},n}]).run(["$location","banMessage",function(e,t){t.show(e.search())}]),angular.module("room.restricted",["locale","templates"]).component("habboRoomRestricted",{bindings:{room:"<"},controllerAs:"RoomRestrictedController",templateUrl:"room/room-restricted/room-restricted.html",controller:["$http","$window","CONFIG",function(e,t,r){var n=this;n.forward=function(t){return e.post([r.apiUrl,"public/rooms",t,"forward"].join("/")).then(function(e){return e.data})}}]}),angular.module("room.picture",["templates"]).component("habboRoomPicture",{bindings:{url:"@"},templateUrl:"room/room-picture/room-picture.html",controllerAs:"RoomPictureController"}),angular.module("room.open",["avatar","locale","official.room.avatar","room.info","room.picture","templates"]).component("habboRoomOpen",{bindings:{room:"<"},controllerAs:"RoomOpenController",templateUrl:"room/room-open/room-open.html",controller:["$http","$window","CONFIG",function(e,t,r){var n=this;n.forward=function(t){return e.post([r.apiUrl,"public/rooms",t,"forward"].join("/")).then(function(e){return e.data})};var o=t.btoa(n.room.name.replace(/[^\x00-\x7F]/g,"").trim());n.room.hotelReportLink="/hotel?link=navigator/report/"+n.room.uniqueId+"/"+o}]}),angular.module("room.info",["templates"]).component("habboRoomInfo",{bindings:{description:"@",tags:"<"},templateUrl:"room/room-info/room-info.html",controllerAs:"RoomInfoController"}),angular.module("registration.profileVisibility",["locale","templates"]).component("habboProfileVisibility",{require:{FormController:"^form"},bindings:{profileVisibility:"="},controllerAs:"ProfileVisibilityController",templateUrl:"registration/profile-visibility/profile-visibility.html"}),angular.module("registration.policies",["locale","templates"]).component("habboPolicies",{require:{FormController:"^form"},bindings:{policies:"="},controllerAs:"PoliciesController",templateUrl:"registration/policies/policies.html"}),angular.module("birthdate.filters",[]).filter("daysInMonth",function(){var e=[4,6,9,11];return function(t,r,n){return r=parseInt(r,10),n=parseInt(n,10),2===r?moment([n]).isLeapYear()?_(t).take(29).value():_(t).take(28).value():_(e).includes(r)?_(t).take(30).value():t}}),angular.module("birthdate",["ngMessages","birthdate.filters","locale","templates"]).component("habboBirthdate",{require:{FormController:"^form"},bindings:{birthdate:"="},controller:["$scope","daysInMonthFilter",function(e,t){var r=7,n=1900,o=(new Date).getFullYear()-r,a=this;a.days=_.range(1,32),a.months=[{value:1,translationKey:"MONTH_JANUARY"},{value:2,translationKey:"MONTH_FEBRUARY"},{value:3,translationKey:"MONTH_MARCH"},{value:4,translationKey:"MONTH_APRIL"},{value:5,translationKey:"MONTH_MAY"},{value:6,translationKey:"MONTH_JUNE"},{value:7,translationKey:"MONTH_JULY"},{value:8,translationKey:"MONTH_AUGUST"},{value:9,translationKey:"MONTH_SEPTEMBER"},{value:10,translationKey:"MONTH_OCTOBER"},{value:11,translationKey:"MONTH_NOVEMBER"},{value:12,translationKey:"MONTH_DECEMBER"}],a.years=_.range(n,o).reverse(),e.$watchGroup(["BirthdateController.month","BirthdateController.year"],function(e){var r=parseInt(a.day,10),n=e[0],o=e[1];a.day=r,_(t(a.days,n,o)).includes(r)||(a.day="")}),e.$watchGroup(["BirthdateController.day","BirthdateController.month","BirthdateController.year"],function(e){var t=parseInt(e[0],10),r=parseInt(e[1],10),n=parseInt(e[2],10);_.isNaN(t)||_.isNaN(r)||_.isNaN(n)?a.FormController.birthdate.$pristine||a.FormController.birthdate.$setViewValue(null):a.FormController.birthdate.$setViewValue({day:t,month:r,year:n})})}],controllerAs:"BirthdateController",templateUrl:"registration/birthdate/birthdate.html"}),angular.module("profile.modal",["by.name.description.or.motto.filter","empty.results","form","locale","profile.item.lists","templates","ui.bootstrap"]).controller("ProfileModalController",["items","type",function(e,t){var r=this;r.items=e,r.type=t}]).component("habboProfileModal",{bindings:{items:"<",type:"@"},controller:["$uibModal",function(e){var t=this;t.openModal=function(){e.open({transclude:!0,templateUrl:"profile/profile-modal/profile-modal.html",controller:"ProfileModalController",controllerAs:"ProfileModalController",resolve:{items:_.constant(t.items),type:_.constant(t.type)}})}}],controllerAs:"ProfileModalComponentController",template:'
'}),angular.module("profile.header",["encode.uri.component","imager","templates"]).component("habboProfileHeader",{bindings:{figure:"@",user:"@",motto:"@",profile:"@"},controller:function(){var e=this;e.isCroco=function(e){return Boolean(e)&&"crikey"===e.toLowerCase()}},controllerAs:"ProfileHeaderController",templateUrl:"profile/profile-header/profile-header.html",transclude:!0}),angular.module("profile.item.lists",["badge","by.name.description.or.motto.filter","encode.uri.component","flash","group.badge","imager","infinite-scroll","room.icon","templates"]).component("habboBadgeList",{bindings:{badges:"<",query:"<"},controllerAs:"BadgeListController",templateUrl:"profile/item-lists/badges.html"}).component("habboFriendList",{bindings:{friends:"<",query:"<"},controllerAs:"FriendListController",templateUrl:"profile/item-lists/friends.html"}).component("habboRoomList",{bindings:{rooms:"<",query:"<"},controllerAs:"RoomListController",templateUrl:"profile/item-lists/rooms.html"}).component("habboGroupList",{bindings:{groups:"<",query:"<"},controllerAs:"GroupListController",templateUrl:"profile/item-lists/groups.html"}),angular.module("creation",["creation.content","creation.service","header","locale","profile.header","router","templates"]).config(["$stateProvider","$urlRouterProvider",function(e,t){var r=["$q","$stateParams","creations",function(e,t,r){var n=_.findIndex(r,{id:t.creationId});return n>=0?n:e.reject()}];e.statePublic("photo",{url:"/profile/:name/photo/:creationId?pool",controller:"CreationController",controllerAs:"CreationController",onEnter:["creations","index","Head",function(e,t,r){r.setTitle("HEAD_TITLE_PHOTO",{name:e[t].creator_name}),r.image=e[t].url,r.imageHeight=e[t].contentHeight,r.imageWidth=e[t].contentWidth}],resolve:{creations:["$stateParams","Creations",function(e,t){return t.photos({pool:e.pool,name:e.name})}],index:r},templateUrl:"profile/creation/creation.html"}),e.statePublic("story",{url:"/profile/:name/story/:creationId?pool",controller:"CreationController",controllerAs:"CreationController",onEnter:["creations","index","Head",function(e,t,r){var n=e[t];"SELFIE"===n.type?r.setTitle("HEAD_TITLE_SELFIE",{name:n.creator_name}):r.setTitle("HEAD_TITLE_CREATION",{creation:n.title,name:n.creator_name}),r.image=n.url,r.imageHeight=n.contentHeight,r.imageWidth=n.contentWidth}],resolve:{creations:["$stateParams","Creations",function(e,t){return t.stories({pool:e.pool,name:e.name})}],index:r},templateUrl:"profile/creation/creation.html"}),t.when("/profile/:name/creation/:id","/profile/:name/story/:id")}]).controller("CreationController",["$scope","creations","index","scrolltop",function(e,t,r,n){var o=this;o.creation=t[r],o.next=t[r+1],o.previous=t[r-1],e.$on("$stateChangeStart",function(e,t){"photo"===t.name||"story"===t.name?n.setEnabled(!1):n.setEnabled(!0)})}]),angular.module("creation.content",["creation.href","like","locale","navigate.to.on.key","photo.delete","report","security","templates"]).component("habboCreationContent",{bindings:{creation:"<",previous:"<",next:"<"},controller:["Session",function(e){var t=this;t.isDeletable=function(){return e.isCurrentUser(t.creation.creator_uniqueId)}}],controllerAs:"CreationContentController",templateUrl:"profile/creation/creation-content.html"}),angular.module("creation.service",["photos.service","profile.creations"]).factory("Creations",["CreationsProfile","Photos",function(e,t){var r={};return r.photos=function(r){return"photos"===r.pool?t.query().$promise:e.photosForUser(r.name)},r.stories=function(t){return e.storiesForUser(t.name)},r}]),angular.module("client.messenger",[]).factory("clientMessenger",function(){function e(e){o.postMessage({call:"open-link",target:e.link},"*")}function t(e){o.postMessage({call:"open-room",target:e.room},"*")}function r(e){o.postMessage({call:"interstitial-status",target:e.interstitial},"*")}var n={},o=null,a={link:e,room:t,interstitial:r};return n.init=function(e){o=e},n.handle=function(e){var t=_(e).pickBy(_.isString).keys().head(),r=a[t];r&&r(e)},n}),angular.module("client.listener",["client.heartbeat.ping.service","interstitial","notifier","security"]).factory("clientListener",["$location","$rootScope","EVENTS","Session","clientHeartbeatPing","interstitial","notifier","security",function(e,t,r,n,o,a,i,s){function l(){_=!0}function c(){C=moment(),(null===A||moment().diff(A,"seconds")>v)&&(A=moment(),o.ping())}function u(){s.logout()["catch"](function(){t.$emit(r.clientClose),i.errorSticky("ERROR_LOGOUT_TITLE","ERROR_LOGOUT_TEXT")})}function f(t){e.url(t)}function d(e){n.update({figureString:e})}function h(e){n.update({name:e})}function p(){return moment().diff(C,"seconds")<60}function m(){a.start("midroll")}function g(e){n.update({buildersClubMember:e})}function b(e){n.update({habboClubMember:e})}var v=300,y={},_=!1,C=null,A=null,E={disconnect:l,heartbeat:c,logout:u,"open-page":f,"update-figure":d,"update-name":h,"show-interstitial":m,"update-builders-club":g,"update-habbo-club":b};return y.init=function(){_=!1,C=null},y.handle=function(e){var t=E[e.call];t&&t(e.target)},y.isAlive=function(){return Boolean(C)&&p()},y.hasDied=function(){return Boolean(C)&&!p()},y.hasDisconnected=function(){return _},y}]),angular.module("client.heartbeat.ping.service",["config"]).factory("clientHeartbeatPing",["$http","CONFIG",function(e,t){var r={};return r.ping=function(){return e.get(t.apiUrl+"/user/ping")},r}]),angular.module("client.communication",["client.listener","client.messenger","events"]).directive("habboClientCommunication",["$timeout","$window","EVENTS","clientListener","clientMessenger",function(e,t,r,n,o){return{restrict:"A",link:function(a,i){function s(t){e(function(){n.handle(t.originalEvent.data)})}var l=i.get(0).contentWindow;o.init(l),a.$on(r.clientOpen,function(e,t){var r=a.$watch(n.isAlive,function(e){e&&(o.handle(t),r())});n.init()}),angular.element(t).on("message",s),i.on("$destroy",function(){angular.element(t).off("message",s)})}}}]),angular.module("client.native.url",["ngResource","config","storage"]).factory("ClientNativeUrl",["$resource","CONFIG",function(e,t){return e(t.apiUrl+"/client/clientnative/url")}]).factory("ClientNativeDownloadUrl",["$resource","CONFIG","httpCache",function(e,t,r){return e(t.apiUrl+"/client/clientnative/download",null,{get:{method:"GET",cache:r.shortCache}})}]),angular.module("client.native.service",["client.native.url","system.data"]).factory("nativeHotelService",["$q","ClientNativeUrl","SystemData",function(e,t,r){var n={};return n.open=r.isHotelOpen(),n.start=function(){return n.clientPromise?n.clientPromise:(n.clientPromise=e(function(e,r){return n.open?void t.save().$promise.then(function(t){return t.error?void r("error"):void e({url:t.clienturl,ticket:t.ticket})})["catch"](r):void r("closed")}),n.clientPromise)},n.stop=function(){delete n.clientPromise},n}]).factory("nativeHotelDownloadService",["$q","CONFIG","ClientNativeDownloadUrl",function(e,t,r){var n={};return n.getDownloadUrls=function(){return e(function(e){r.get().$promise.then(function(t){e(t.downloadUrls)})})},n.getFaqUrl=function(){return e(function(e){e(t.habboHelp)})},n}]),angular.module("client.disable.scrollbars",["events"]).directive("habboClientDisableScrollbars",["EVENTS",function(e){return{restrict:"A",link:function(t,r){t.$on(e.clientOpen,function(){r.css("overflow","hidden")}),t.$on(e.clientClose,function(){r.css("overflow","")})}}}]),angular.module("client",["client.component","client.disable.scrollbars"]),angular.module("client.service",["ngResource","config"]).factory("Client",["$resource","CONFIG",function(e,t){return e(t.apiUrl+"/client/clientv2url")}]),angular.module("client.component",["angularScreenfull","client.close.expander","client.close.fullscreen.on.hide","client.closed","client.communication","client.reload","client.service","events","locale","notifier","router","security","storage","system.data","templates"]).component("habboClient",{controller:["$location","$rootScope","$scope","$state","Client","EVENTS","Session","SystemData","clientListener","localStorage","notifier",function(e,t,r,n,o,a,i,s,l,c,u){function f(){if(!d.running)return d.running=!0,d.client=o.save(),d.client.$promise["catch"](function(){d.running=!1,u.error("ERROR_SERVER")})}var d=this;d.visible=!1,d.isOpen=s.isHotelOpen(),d.shutdown=!0,d.close=function(){t.$broadcast(a.clientClose)},d.reload=function(){t.$broadcast(a.clientOpen)},r.$on(a.clientOpen,function(){d.shutdown=!1,f(),c.set("hotelLastAccess",Date.now()),d.visible=!0}),r.$on(a.clientNativeOpen,function(){d.shutdown=!0,d.running=!1,d.visible=!1}),r.$on(a.clientClose,function(e,t){d.visible=!1,t||n.back()}),r.$on("$stateChangeSuccess",function(e,r,n,o){"hotel"===o.name&&t.$broadcast(a.clientClose,!0)})}],controllerAs:"ClientController",templateUrl:"hotel/client/client.html"}),angular.module("client.close.fullscreen.on.hide",["angularScreenfull","events"]).directive("habboClientCloseFullscreenOnHide",["EVENTS",function(e){return{restrict:"A",require:"ngsfFullscreen",link:function(t,r,n,o){t.$on(e.clientClose,function(){o.isFullscreen()&&o.toggleFullscreen()})}}}]),angular.module("register.banner",["air.download.link","local.register.banner","locale","templates"]).component("habboRegisterBanner",{templateUrl:"home/register-banner/register-banner.html",controller:["$element",function(e){this.$onInit=function(){if(11===(new Date).getMonth()){var t=e.find(".register-banner__hotel");t.length&&t.addClass("christmas-theme")}}}]}),angular.module("promos.service",["config"]).factory("promos",["$http","$q","CONFIG",function(e,t,r){return{get:function(){var n=r.habboWebNewsUrl+"front.html";return e.get(n).then(function(e){return{html:e.data}})["catch"](function(){return t.when({html:""})})}}}]),angular.module("news",["compile","locale","moderation.notification","promos.service","router","templates","web.pages"]).config(["$stateProvider",function(e){e.statePublic("home.news",{url:"/",controller:"NewsController",controllerAs:"NewsController",data:{title:"HEAD_TITLE_NEWS"},resolve:{promos:["promos",function(e){return e.get()}]},parent:"home",templateUrl:"home/news/news.html"})}]).controller("NewsController",["promos",function(e){var t=this;t.promos=e.html}]),angular.module("messaging",["discussions","locale","router","templates","user.service"]).config(["$stateProvider",function(e){e.statePrivate("home.messaging",{url:"/messaging",controller:"MessagingController",controllerAs:"MessagingController",data:{title:"HEAD_TITLE_MESSAGING"},resolve:{discussions:["User",function(e){return e.discussions().$promise}]},parent:"home",templateUrl:"home/messaging/messaging.html"})}]).controller("MessagingController",["discussions",function(e){var t=this;t.discussions=e}]),angular.module("user.service",["ngResource","config","storage"]).factory("User",["$resource","CONFIG","httpCache",function(e,t,r){return e(t.apiUrl+"/user/:resource",null,{discussions:{method:"GET",isArray:!0,params:{resource:"discussions"},cache:r.shortCache}})}]),angular.module("email.report.unauthorized.service",["config","google.analytics"]).factory("reportUnauthorized",["$http","CONFIG","googleAnalytics",function(e,t,r){return function(n,o){return e.get(t.apiUrl+"/public/email/unauthorized/"+n+"/"+o).then(function(){r.trackEvent("Email","Unauthorized email reported")})}}]),angular.module("email.report.unauthorized",["email.report.unauthorized.form","header","locale","message.container","router"]).config(["$stateProvider",function(e){e.statePublic("reportUnauthorized",{url:"/identity/report_unauthorized_usage?email&hash",controller:"EmailReportUnauthorizedController",controllerAs:"EmailReportUnauthorizedController",data:{title:"HEAD_TITLE_EMAIL_REPORT_UNAUTHORIZED"},templateUrl:"email/email-report-unauthorized/email-report-unauthorized.html"})}]).controller("EmailReportUnauthorizedController",["$stateParams",function(e){var t=this;t.email=e.email,t.hash=e.hash}]),angular.module("email.report.unauthorized.form",["email.report.unauthorized.service","locale","notifier","router","templates"]).component("habboEmailReportUnauthorizedForm",{bindings:{emailaddress:"<",hash:"<"},controller:["$state","notifier","reportUnauthorized",function(e,t,r){var n=this;n.reportInProgress=!1,n.report=function(){n.reportInProgress=!0,r(n.emailaddress,n.hash).then(function(){t.success("EMAIL_REPORT_UNAUTHORIZED_SUCCESS"),e.go("home.news")})["catch"](function(){t.error("ERROR_SERVER")})["finally"](function(){n.reportInProgress=!1})}}],controllerAs:"EmailReportUnauthorizedFormController",templateUrl:"email/email-report-unauthorized/email-report-unauthorized-form.html"}),angular.module("email.optout.success",["locale","router"]).config(["$stateProvider",function(e){e.statePublic("optout_success",{url:"/email/optout_success",data:{title:"HEAD_TITLE_EMAIL_OPTOUT"},templateUrl:"email/email-optout-success/email-optout-success.html"})}]),angular.module("optout.service",["config","google.analytics"]).factory("optout",["$http","CONFIG","googleAnalytics",function(e,t,r){return function(n,o){return e.get(t.apiUrl+"/public/email/optout/"+n+"/"+o).then(function(){r.trackEvent("Email","Optout")})}}]),angular.module("email.optout",["locale","notifier","optout.service","router"]).config(["$stateProvider",function(e){e.statePublic("optout",{url:"/email/marketing_off?email&hash",controller:"OptOutController",resolve:{optingout:["$stateParams","optout",function(e,t){return t(e.email,e.hash)}]}})}]).controller("OptOutController",["$state","notifier",function(e,t){t.success("OPTOUT_SUCCESS"),e.go("optout_success")}]),angular.module("rooms",["avatar","config","leaderboard.service","locale","official.room.avatar","router"]).config(["$stateProvider",function(e){e.statePublic("community.rooms",{url:"/rooms",parent:"community",controller:"RoomsController",controllerAs:"RoomsController",templateUrl:"community/rooms/rooms.html",data:{title:"HEAD_TITLE_ROOMS"},resolve:{rooms:["Leaderboard","CONFIG",function(e,t){return e.get({site:t.hotel,leaderboard:"visited-rooms",timeframe:"daily",date:"latest"}).$promise}]}})}]).controller("RoomsController",["rooms",function(e){var t=this;t.rooms=e}]),angular.module("photos",["columns","locale","photos.service","router"]).config(["$stateProvider",function(e){e.statePublic("community.photos",{url:"/photos",parent:"community",controller:"PhotosController",controllerAs:"PhotosController",templateUrl:"community/photos/photos.html",data:{title:"HEAD_TITLE_PHOTOS"},resolve:{photos:["Photos",function(e){return e.query().$promise}]}})}]).controller("PhotosController",["photos",function(e){var t=this;t.photos=e}]),angular.module("photos.service",["ngResource","config","reported.photos","safe.transform.response","storage"]).factory("Photos",["$resource","CONFIG","httpCache","reportedPhotosFilter","safeTransformResponse",function(e,t,r,n,o){return e(t.extraDataUrl+"/public/photos",null,{query:{isArray:!0,cache:r.shortCache,transformResponse:o.fromJson(function(e){var t=n(e);return _.map(t,function(e){return _.assign(e,{url:"https:"+e.url,contentWidth:320,contentHeight:320,parentTitle:"PHOTOS_TITLE",pool:"photos"})})})}})}]),angular.module("fansites",["locale","router","templates","web.pages"]).config(["$stateProvider",function(e){e.statePublic("community.fansites",{url:"/fansites",controller:"FansitesController",controllerAs:"FansitesController",data:{title:"HEAD_TITLE_FANSITES"},resolve:{fansites:["webPages",function(e){return e.get("community/fansites")}]},parent:"community",templateUrl:"community/fansites/fansites.html"})}]).controller("FansitesController",["fansites",function(e){var t=this;t.fansites=e}]),angular.module("category.service",["config"]).factory("category",["$http","CONFIG",function(e,t){return{get:function(r,n){var o=r.replace(/-/g,"_"),a=t.habboWebNewsUrl+o+"_"+n+".html";return e.get(a).then(function(e){return{titleKey:angular.element(e.data).find(".news-category__link--active").attr("translate"),html:e.data}})}}}]),angular.module("category",["category.service","compile","locale","router","templates","web.pages"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePublic("community.category",{url:"/category/{category:(?:[^/]+)}{archive:(?:/[^0-9lst/]+)?}/{page}",controller:"CategoryController",controllerAs:"CategoryController",onEnter:["category","Head",function(e,t){t.setTitle(e.titleKey)}],resolve:{category:["$location","$q","$stateParams","category",function(e,t,r,n){var o=r.archive.replace("/","_");return n.get(r.category+o,r.page)["catch"](function(n){return 0!==o.length||"1"!==r.page&&"last"!==r.page?o.length>0&&"1"===r.page?(e.path("/community/category").replace(),t.when({})):t.reject(n):(e.path("/community/category/"+r.category+"/archive/1").replace(),t.when({}))})}]},parent:"community",templateUrl:"community/category/category.html"}),t.when("/community/category","/community/category/all"),t.when("/community/category/:category","/community/category/:category/1")}]).controller("CategoryController",["category",function(e){var t=this;t.category=e.html}]),angular.module("article.service",["config"]).factory("article",["$http","CONFIG",function(e,t){return{get:function(r,n){var o=n.replace(/-/g,"_"),a=t.habboWebNewsUrl+"articles/"+r+"_"+o+".html"; return e.get(a).then(function(e){var t=angular.element(e.data);return{title:t.find("h1, h2, h3, h4, h5, h6").eq(0).text(),summary:t.find(".news-header__summary").text(),image:t.find("img").eq(0).attr("src"),html:e.data}})}}}]),angular.module("article",["article.service","compile","lightbox","locale","router","templates","web.pages"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePublic("community.article",{url:"/article/:id/:title",controller:"ArticleController",controllerAs:"ArticleController",onEnter:["article","Head",function(e,t){t.title=e.title,t.description=e.summary,t.image=e.image,t.imageHeight=300,t.imageWidth=759}],resolve:{article:["$stateParams","article",function(e,t){return t.get(e.id,e.title)}]},parent:"community",templateUrl:"community/article/article.html"}),t.when("/article/:id/:slug","/community/article/:id/:slug"),t.when("/articles/{id:[0-9]*}-{slug:[a-z-]*}","/article/:id/:slug")}]).controller("ArticleController",["article",function(e){var t=this;t.article=e.html}]),angular.module("zendesk.url",["config","security"]).filter("zendeskRedirectUrl",["CONFIG","Session",function(e,t){var r=function(r,n){return n===!0||t.hasSession()&&_(r).includes("help.habbo")?e.apiUrl+"/public/help?returnTo="+r:r};return r.$stateful=!0,r}]).factory("zendeskService",["$http","CONFIG","Session",function(e,t,r){var n={};return n.getHelpFormData=function(r){return e.post(t.apiUrl+"/public/help/v2",{returnTo:r}).then(function(e){return e.data})},n.ensureHelpUrl=function(e){return r.hasSession()&&(_(e).includes("help.habbo")||_(e).includes("zendesk.com"))?e:null},n}]),angular.module("web.pages.service",["config"]).factory("webPages",["$http","CONFIG",function(e,t){return{get:function(r){var n=t.habboWebPagesUrl+r+"."+t.lang+".html";return e.get(n).then(function(e){return e.data})}}}]),angular.module("web.pages",["web.pages.service"]).component("habboWebPages",{bindings:{key:"@"},controller:["$animate","$compile","$element","$scope","webPages",function(e,t,r,n,o){e.addClass(r,"ng-hide"),n.$watch("WebPagesController.key",function(a){o.get(a).then(function(o){var a=r.children().first();a.html(o),t(a.contents())(n),e.removeClass(r,"ng-hide")})})}],controllerAs:"WebPagesController",template:''}),angular.module("text.copy",["ui.bootstrap"]).directive("habboTextCopy",["$document","$timeout",function(e,t){return{restrict:"E",scope:{textToCopy:"=",status:"="},templateUrl:"common/text-copy/text-copy-button.html",link:function(r,n){n.on("click",function(){r.copyText=function(){var n=r.textToCopy,o=e[0].createElement("textarea");o.style.position="fixed",o.style.opacity=0,o.value=n,e[0].body.appendChild(o),o.select(),e[0].execCommand("copy"),e[0].body.removeChild(o),r.status=1,t(function(){r.status=0},2e3)}})}}}]),angular.module("tabs",["locale","tab","templates"]).component("habboTabs",{bindings:{titleKey:"@"},controller:function(){var e=this;e.open=!1,e.tabs=[],e.activeTab=null,e.setTab=function(t){e.tabs.push(t)},e.setActive=function(t){e.open=!1,e.activeTab=_.find(e.tabs,{path:t})}},controllerAs:"TabsController",templateUrl:"common/tabs/tabs.html",transclude:!0}),angular.module("tab",["locale","templates"]).component("habboTab",{require:{HabboTabsController:"^habboTabs"},bindings:{path:"@",alternativePath:"@",strictPath:"@",translationKey:"@"},controller:["$scope","$location",function(e,t){function r(){o.active="true"===o.strictPath?t.path()===o.path:n(),o.active&&o.HabboTabsController.setActive(o.path)}function n(){return 0===t.path().indexOf(o.path)||0===t.path().indexOf(o.alternativePath)}var o=this;o.open=!1,o.$onInit=function(){o.HabboTabsController.setTab({path:o.path,translationKey:o.translationKey}),r()},e.$on("$stateChangeSuccess",r)}],controllerAs:"TabController",templateUrl:"common/tabs/tab.html"}),angular.module("system.data",[]).factory("SystemData",["$window",function(e){var t={};return t.geoLocation={continent:e.geoLocation?e.geoLocation.continent:null,country:e.geoLocation?e.geoLocation.country:null},t.getShopCountry=function(){return"gb"===t.geoLocation.country?"uk":t.geoLocation.country},t.isHotelOpen=function(){var t=e.systemData&&e.systemData.open;return t!==!1},t}]),angular.module("storage",["cache","local.storage"]),angular.module("sticky.header",[]).directive("habboStickyHeader",["$window",function(e){return{restrict:"A",link:function(t,r){function n(){var t=e.pageYOffset>0?e.pageYOffset:0,n=i-t;t<=r.height()?r.addClass("sticky-header--top"):r.removeClass("sticky-header--top"),0===t&&r.removeClass("sticky-header--fixed"),n>0&&o(n)&&t>r.height()?r.addClass("sticky-header--fixed"):n<0&&o(n)&&(r.hasClass("sticky-header--fixed")&&r.addClass("sticky-header--hidden"),r.removeClass("sticky-header--fixed")),(r.hasClass("sticky-header--fixed")||r.hasClass("sticky-header--top"))&&r.removeClass("sticky-header--hidden"),i=t}function o(e){return Math.abs(e)>a}var a=5,i=e.pageYOffset;i<=r.height()?r.addClass("sticky-header sticky-header--top"):r.addClass("sticky-header sticky-header--fixed"),angular.element(e).on("orientationchange resize scroll",n),r.on("$destroy",function(){angular.element(e).off("orientationchange resize scroll",n)})}}}]),angular.module("show.on.load",[]).directive("habboShowOnLoad",function(){return{restrict:"A",link:function(e,t){t.hide(),t.on("load",function(){t.show()})}}}),angular.module("safety.question.filters",[]).filter("question",function(){return function(e,t){return _.without(e,t)}}),angular.module("safe.transform.response",[]).factory("safeTransformResponse",function(){var e={};return e.fromJson=function(e){return function(t){var r;try{return r=angular.fromJson(t),e(r)}catch(n){return t}}},e}),angular.module("reported.photos.service",["storage"]).factory("reportedPhotos",["localStorage",function(e){var t="reportedPhotos",r={},n=e.get(t)||[];return r.save=function(r){n.push(r),e.set(t,n)},r.get=function(){return n},r}]),angular.module("reported.photos",["reported.photos.service"]).filter("reportedPhotos",["reportedPhotos",function(e){return function(t){var r=e.get();return _.filter(t,function(e){return!_.includes(r,e.id)})}}]),angular.module("remove.on.error",[]).directive("habboRemoveOnError",function(){return{restrict:"A",link:function(e,t){t[0].onerror=function(){t.remove()}}}}),angular.module("popup",[]).factory("popup",["$interval","$q","$window",function(e,t,r){function n(e,t){var n=r.innerWidth,i=r.innerHeight;return e=e||a,t=t||o,["width="+(n>=e?e:n),"height="+(i>=t?t:i)].join(",")}var o=768,a=1024,i={};return i.open=function(o,a,i){var s=t.defer(),l=r.open(o,"_blank",n(a,i)),c=e(function(){l&&!l.closed||(s.resolve(),e.cancel(c))},100);return s.promise},i}]),angular.module("official.room.avatar",["locale","templates"]).component("officialRoomAvatar",{templateUrl:"common/official-room-avatar/official-room-avatar.html"}),angular.module("notifier",["locale"]).factory("notifier",["$q","$translate",function(e,t){var r={extendedTimeOut:1e3,hideDuration:300,positionClass:"toast-top-center",preventDuplicates:!0,progressBar:!0,showDuration:300,timeOut:2e4},n=_.extend({},r,{extendedTimeOut:0,hideDuration:0,positionClass:"toast-top-center toast-sticky",timeOut:0,tapToDismiss:!1}),o=_.partialRight(toastr.success,"",r),a=_.partialRight(toastr.error,"",r),i=_.partialRight(toastr.error,n),s=function(e){return function(r,n){t(r,n).then(e)["catch"](e)}},l=function(r){return function(n,o,a){e.all([t(o,a),t(n),t("OK_BUTTON")]).then(function(e){var t=r(e[0]+'",e[1]);t.delegate("button","click",function(){toastr.options.hideDuration=0,toastr.clear(t,{force:!0})})})}},c=function(e,r){t(r).then(function(t){var r=toastr.error(e,t,n);r.delegate("button","click",function(){toastr.options.hideDuration=0,toastr.clear(r,{force:!0})})})};return{success:s(o),error:s(a),errorSticky:l(i),errorStickyRawMessage:c}}]),angular.module("navigate.to.on.key",[]).directive("habboNavigateToOnKey",["$document",function(e){function t(e){var t={left:37,right:39};return t[e]}return{restrict:"A",link:function(r,n,o){function a(e){e.which===i&&(e.preventDefault(),n.trigger("click"))}var i=t(o.habboNavigateToOnKey);angular.element(e).keydown(a),n.on("$destroy",function(){angular.element(e).unbind("keydown",a)})}}}]),angular.module("message.container",["angular-multiple-transclusion","templates"]).component("habboMessageContainer",{templateUrl:"common/message-container/message-container.html",transclude:!0}),angular.module("my.like.cache",[]).factory("myLikeCache",function(){var e={},t={};return e.like=function(e){t[e]="like"},e.unlike=function(e){t[e]="unlike"},e.hasLike=function(e){return"like"===t[e]},e.hasUnlike=function(e){return"unlike"===t[e]},e}),angular.module("like.service",["config","like.filters","my.like.cache","security"]).factory("like",["$http","CONFIG","Session","myLikeCache",function(e,t,r,n){function o(e,t){401!==t&&(n.like(e.id),e.likes=_.uniq(e.likes.concat(r.user.name)))}function a(e,t){401!==t&&(n.unlike(e.id),_.remove(e.likes,_.matches(r.user.name)))}var i={};return i.like=function(r){e.post(t.extraDataUrl+"/private/like/"+r.id).then(function(e){o(r,e.status)})["catch"](function(e){o(r,e.status)})},i.unlike=function(r){e.post(t.extraDataUrl+"/private/unlike/"+r.id).then(function(e){a(r,e.status)})["catch"](function(e){a(r,e.status)})},i}]),angular.module("like.filters",["security"]).filter("myLike",["Session",function(e){return function(t){return _.find(t.likes,function(t){return!!e.hasSession()&&t===e.user.name})}}]).filter("othersLikes",["Session",function(e){return function(t){return _.filter(t.likes,function(t){return!e.hasSession()||t!==e.user.name})}}]),angular.module("like",["avatar","false.on.outside.click","like.filters","like.service","locale","my.like.cache","security","templates"]).component("habboLike",{bindings:{data:"="},controller:["$timeout","Session","like","myLikeCache","myLikeFilter",function(e,t,r,n,o){var a=this,i=o(a.data);n.hasLike(a.data.id)&&!i&&a.data.likes.push(t.user.name),n.hasUnlike(a.data.id)&&i&&_.remove(a.data.likes,_.matches(i)),a.show=!1,a.mouseenter=function(){e(function(){a.show=!0})},a.like=function(){r.like(a.data)},a.unlike=function(){r.unlike(a.data)}}],controllerAs:"LikeController",templateUrl:"common/like/like.html"}),angular.module("lightbox.modal",["templates","ui.bootstrap"]).controller("LightboxController",["src",function(e){var t=this;t.src=e}]).factory("lightbox",["$uibModal",function(e){var t={};return t.open=function(t){return e.open({animation:!1,backdropClass:"lightbox-backdrop",controller:"LightboxController",controllerAs:"LightboxController",resolve:{src:_.constant(t)},templateUrl:"common/lightbox/lightbox-modal.html",windowClass:"lightbox-modal"}).result},t}]),angular.module("lightbox",["lightbox.modal"]).directive("habboLightbox",["lightbox",function(e){return{restrict:"A",link:function(t,r,n){r.click(function(t){t.preventDefault(),e.open(n.href)})}}}]),angular.module("leaderboard.service",["ngResource","config","storage"]).factory("Leaderboard",["$resource","CONFIG","httpCache",function(e,t,r){return e(t.habboWebLeaderboardsUrl+"/:site/:leaderboard/:timeframe/:date.json",null,{get:{method:"GET",isArray:!0,cache:r.shortCache}})}]),angular.module("imager.service",["angular-md5","config"]).factory("imager",["CONFIG","md5",function(e,t){function r(e){return _(e).transform(function(e,t,r){return e.push(r+"-"+t),e},[]).join(".")}var n={},o="ef2356a4926bf225eb86c75c52309c32";return n.generatePose=function(e){var t=e.size||"big",r=e.direction||"sw",n=e.headDirection||r,o=e.action||"stand",a=e.gesture||"smile",i={};return i.s={big:0,bighead:2,smallhead:3,large:4,largehead:5}[t.toLowerCase()],i.g={none:0,smile:1,angry:2,surprise:3,sad:4,speak:5,eyebrows:6}[a.toLowerCase()],i.d={nw:0,w:1,sw:2,s:3,se:4,e:5,ne:6,n:7}[r.toLowerCase()],i.h={nw:0,w:1,sw:2,s:3,se:4,e:5,ne:6,n:7}[n.toLowerCase()],i.a={stand:0,sit:1,walk:2,wave:3,lay:4,carry:5,drink:6}[o.toLowerCase()],i},n.get2xSize=function(e){return{big:"large",bighead:"largehead",smallhead:"bighead"}[e||"big"]},n.getDimensions=function(e){return{big:{width:64,height:110},bighead:{width:54,height:62},smallhead:{width:27,height:30},large:{width:128,height:220},largehead:{width:108,height:124}}[e||"big"]},n.getImagerUrl=function(n,a){var i=r(a),s=t.createHash(n+i+o);return e.imagingUrl+"/avatar/"+encodeURIComponent(n+","+i+","+s)+".png"},n.getLegacyImagerUrl=function(t,r){return e.imagingUrl+"/avatarimage?"+$.param({user:t,headonly:2===r.s||3===r.s||5===r.s?1:0,size:{0:"b",1:"s",2:"b",3:"s",4:"l",5:"l"}[r.s],gesture:{0:"",1:"sml",2:"agr",3:"srp",4:"sad",5:"spk",6:"eyb"}[r.g],direction:r.d,head_direction:r.h,action:{0:"std",1:"sit",2:"wlk",3:"wav",4:"lay",5:"crr",6:"drk"}[r.a]})},n}]),angular.module("imager",["imager.service","templates"]).component("habboImager",{bindings:{figure:"@",user:"@",name:"@",size:"@",direction:"@",headDirection:"@",action:"@",gesture:"@"},controller:["$scope","imager",function(e,t){function r(e){var r={size:e||n.size,direction:n.direction,headDirection:n.headDirection,action:n.action,gesture:n.gesture},o=t.generatePose(r);return n.figure?t.getImagerUrl(n.figure,o):n.user?t.getLegacyImagerUrl(n.user,o):void 0}var n=this;n.dimensions=t.getDimensions(n.size),n.src=r();var o="bighead"===n.size&&n.figure?null:t.get2xSize(n.size);o&&(n.src2x=r(o))}],controllerAs:"ImagerController",templateUrl:"common/imager/imager.html"}),angular.module("hotel.closed",["locale","templates"]).component("habboHotelClosed",{templateUrl:"common/hotel-closed/hotel-closed.html"}),angular.module("header",["locale","navigation","security","sticky.header","templates","user.menu"]).component("habboHeaderLarge",{bindings:{active:"@"},controllerAs:"HeaderLargeController",templateUrl:"common/header/header-large.html",transclude:!0}).component("habboHeaderSmall",{bindings:{active:"@"},controller:["$state","loginModal",function(e,t){var r=this;r.openLoginModal=function(){return"register"!==r.active?t.open():void e.go("home.news")}}],controllerAs:"HeaderSmallController",templateUrl:"common/header/header-small.html",transclude:!0}),angular.module("group.badge",["config","templates"]).component("habboGroupBadge",{bindings:{code:"@",name:"@"},controller:["CONFIG",function(e){var t=this;t.imagingUrl=e.imagingUrl}],controllerAs:"GroupBadgeController",templateUrl:"common/group-badge/group-badge.html"}),angular.module("google.analytics",[]).factory("googleAnalytics",["$window",function(e){function t(){}var r={};return r.trackEvent=function(r,n,o,a){try{e.ga("send","event",r,n,o,a)}catch(i){t(i)}},r.trackPageView=function(r){try{e.ga("send","pageview",r)}catch(n){t(n)}},r.trackTransaction=function(r,n,o,a,i,s){try{e.ga("ecommerce:addTransaction",{id:r,currency:s,revenue:i}),e.ga("ecommerce:addItem",{id:r,name:n,sku:o,category:a,price:i,quantity:"1"}),e.ga("ecommerce:send")}catch(l){t(l)}},r}]).run(["$location","$rootScope","$timeout","googleAnalytics",function(e,t,r,n){t.$on("$stateChangeSuccess",function(){r(function(){n.trackPageView(e.url())})})}]),angular.module("form",["captcha","email.address","password.current","password.new","password.toggle.mask","search","validators"]),angular.module("footer",["locale","templates","zendesk.url"]).constant("FOOTER_LINKS",["FOOTER_SUPPORT","FOOTER_SAFETY","FOOTER_PARENTS","FOOTER_TOS","FOOTER_PRIVACY","FOOTER_ADVERTISERS","FOOTER_COOKIES"]).component("habboFooter",{controller:["FOOTER_LINKS",function(e){var t=this;t.links=e,t.currentYear=(new Date).getFullYear()}],controllerAs:"FooterController",templateUrl:"common/footer/footer.html"}),angular.module("flash.require",["flash.service"]).directive("habboRequireFlash",["flash","ngIfDirective",function(e,t){var r=t[0];return{restrict:"A",priority:r.priority,terminal:r.terminal,transclude:r.transclude,link:function(t,n,o){o.ngIf=e.isSupported,r.link.apply(r,arguments)}}}]),angular.module("flash",["flash.href","flash.require","flash.service"]),angular.module("flash.service",[]).factory("flash",function(){var e={};return e.isEnabled=function(){return swfobject.hasFlashPlayerVersion("11")},e.isSupported=function(){return e.isEnabled()||!bowser.mobile},e}),angular.module("flash.href",["flash.service"]).directive("habboFlashHref",["flash",function(e){return{restrict:"A",link:function(t,r,n){e.isSupported()&&n.$observe("habboFlashHref",function(e){e&&n.$set("href",e)})}}}]),angular.module("false.on.outside.click",[]).directive("habboFalseOnOutsideClick",function(){return{restrict:"A",link:function(e,t,r){function n(n){0===angular.element(n.target).closest(t).length&&e.$apply(function(){e.$eval(r.habboFalseOnOutsideClick+" = false;")})}e.$watch(r.habboFalseOnOutsideClick,function(e){e?angular.element("body").on("click touchstart",n):angular.element("body").off("click touchstart",n)}),t.on("$destroy",function(){angular.element("body").off("click touchstart",n)})}}}),angular.module("encode.uri.component",[]).filter("encodeURIComponent",["$window",function(e){return e.encodeURIComponent}]),angular.module("empty.results",["locale","templates"]).component("habboEmptyResults",{bindings:{translationKey:"@"},controllerAs:"EmptyResultsController",templateUrl:"common/empty-results/empty-results.html"}),angular.module("creation.href",["encode.uri.component"]).directive("habboCreationHref",["encodeURIComponentFilter",function(e){return{restrict:"A",link:function(t,r,n){t.$watch(n.habboCreationHref,function(t){if(t){var r="PHOTO"===t.type?"photo":"story",o=["profile",e(t.creator_name),r,t.id].join("/");t.pool&&(o+="?pool="+t.pool),n.$set("href","/"+o)}})}}}]),angular.module("console.warning",["locale"]).factory("warning",function(){var e={};return e.HEADER=[" ,,, "," ,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,, ,,,,,,,,,, ,::,, ",",,@@@@@@@@@@@@@@:,:@@@@@@@@::@@@@@@@@@@@::@@@@@@@@@@@@:,,,:@@@@@@@@:,,,::: :, ",",,@@@@@@@@@@@@@@@:@@@@@@@@@@:@@@@@@@@@@@@@@@@@@@@@@@@@@:,:@@@@@@@@@@:,: : ,,",",,@@,,,,,@,,,,,,@@,,,,,,,,,,@@,,,,,,,,,,,@@@,,,,,,,,,,@@@@,,,,,,,,,,@@: :: ,,",",,@@,,,,,@,,,,,,@@,,,,,,,,,,@@,,,,,,,,,,,,@@,,,,,,,,,,,@@@,,,,,,,,,,@@:::: :,,",",,@@,,,,,@,,,,,,@,,,,,,,,,,,,@,,,,,,,,,,,,@@,,,,,,,,,,,,@,,,,,,,,,,,,@@@::,,, ",",,@@,,,,,@,,,,,,@,,,,,,,,,,,,@,,,,,,,,,,,,@@,,,,,,,,,,,,@,,,,,,,,,,,,@@@:,,, ",",,@@,,,,,@,,,,,,@,,,,,@@,,,,,@,,,,,,@,,,,,@@,,,,,@,,,,,,@,,,,,@@,,,,,@;;@@,, ",",,@@,,,,,@,,,,,,@,,,,,@@,,,,,@,,,,,,@,,,,,@@,,,,,@,,,,,,@,,,,,@@,,,,,@;;@@:, ",",,@@,,,,,,,,,,,,@,,,,,@@,,,,,@,,,,,,@,,,,,@@,,,,,@,,,,,,@,,,,,@@,,,,,@;;;;@:, ",",,@@,,,,,,,,,,,,@,,,,,@@,,,,,@,,,,,,,,,,,,@@,,,,,,,,,,,,@,,,,,@@,,,,,@;;;;@@,,",",,@@,,,,,,,,,,,,@,,,,,@@,,,,,@,,,,,,,,,,@@@@,,,,,,,,,,@@@,,,,,@@,,,,,@;;;;@@,,",",,@@::::::::::::@:::::@@:::::@::::::::::@@@@::::::::::@@@:::::@@:::::@;;;;@@,,",",,@@::::::::::::@::::::::::::@::::::::::::@@::::::::::::@:::::@@:::::@;;;;@@,,",",,@@::::::::::::@::::::::::::@::::::@:::::@@:::::@::::::@:::::@@:::::@;;;;@@,,",",,@@:::::@::::::@::::::::::::@::::::@:::::@@:::::@::::::@:::::@@:::::@;;;;@@,,",",,@@:::::@::::::@:::::@@:::::@::::::@:::::@@:::::@::::::@:::::@@:::::@;;;;@@,,",",,@@:::::@::::::@:::::@@:::::@::::::::::::@@::::::::::::@::::::::::::@;;;;@@,,",",,@@:::::@::::::@:::::@@:::::@::::::::::::@@::::::::::::@::::::::::::@;;;;@@,,",",,@@:::::@::::::@:::::@@:::::@::::::::::::@@:::::::::::@@@::::::::::@@;;;;@@,,",",,@@:::::@::::::@:::::@@:::::@:::::::::::@@@::::::::::@@@@::::::::::@@;;;;@@,,",",,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@;;;@@@@@@@@@@;;;;;;@@,,",",,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@;;@@@@@@@@@@@;;;;;@@@@@@@@@;;;;;;;@@,,",",,,:@@;;;;@@;;;;;@@;;;;;@@;;;;@@;;;;;;;;;;;;@@;;;;;;;;;;;;;;@@;;;;;;;;;;;;@@,,"," ,,,@@;;;;;@@;;;;;@@;;;;@@;;;;;@@;;;;;;;;;;;@@;;;;;;;;;;;;;;@@;;;;;;;;;;;;@:,,"," ,,,:@@;;;;@@;;;;;@@;;;;;@@;;;;@@;;;;;;;;;;@@@@;;;;;;;;;;@@@:@@;;;;;;;;@@:,, "," ,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:,@@@@@@@@@@@@,,, "," ,,,:::::::::::::::::::::::::::::::::::::::,::::::::::::,,,,,::::::::,,,, "," ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, "," ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,, "," "," "],e.FOOTER=[" "," - Habbo Dev"],e.format=function(t){var r=[],n="";return t.split(" ").forEach(function(t){n.length+t.length+5>e.HEADER[0].length&&(r.push(n),n=""),n+=t+" "}),n&&r.push(n),_.map(r,function(e){return" "+e.trim()})},e}).run(["$log","$translate","warning",function(e,t,r){t("CONSOLE_WARNING").then(function(t){var n=r.format(t);e.info(r.HEADER.join("\n")+"\n"+n.join("\n")+"\n"+r.FOOTER.join("\n"))})}]),angular.module("compile",[]).component("habboCompile",{bindings:{data:"<"},controller:["$compile","$element","$scope",function(e,t,r){var n=this;t.html(n.data),e(t.contents())(r)}]}),angular.module("columns",["columns.channel","columns.profile"]),angular.module("by.name.description.or.motto.filter",[]).filter("byNameDescriptionOrMotto",function(){return function(e,t){return _.filter(e,function(e){return!t||e.name&&_(e.name.toLowerCase()).includes(t.toLowerCase())||e.description&&_(e.description.toLowerCase()).includes(t.toLowerCase())||e.motto&&_(e.motto.toLowerCase()).includes(t.toLowerCase())})}}),angular.module("badge",["config","templates"]).component("habboBadge",{bindings:{code:"@",name:"@"},controller:["CONFIG",function(e){var t=this;t.badgeUrl=e.badgeUrl}],controllerAs:"BadgeController",templateUrl:"common/badge/badge.html"}),angular.module("avatar",["encode.uri.component","imager","templates"]).component("habboAvatar",{bindings:{big:"@",user:"@"},controllerAs:"AvatarController",templateUrl:"common/avatar/avatar.html"}),angular.module("ios.download.link",["config","google.analytics"]).directive("habboIosDownloadLink",["CONFIG","googleAnalytics",function(e,t){return{restrict:"A",link:function(r,n,o){bowser.ios&&(o.$set("href",e.appStoreUrl),o.$set("target","_blank"),o.$set("rel","noopener noreferrer"),n.click(function(){t.trackEvent("Download","App Store")}))}}}]),angular.module("air.download.link",["android.download.link","ios.download.link"]),angular.module("android.download.link",["config","google.analytics"]).directive("habboAndroidDownloadLink",["CONFIG","googleAnalytics",function(e,t){return{restrict:"A",link:function(r,n,o){bowser.android&&(o.$set("href",e.googlePlayUrl),o.$set("target","_blank"),o.$set("rel","noopener noreferrer"),n.click(function(){t.trackEvent("Download","Google Play")}))}}}]),angular.module("accordion",["accordion.grid","accordion.item","accordion.item.content","accordion.item.preview"]),angular.module("accordion.item.preview",[]).component("habboAccordionItemPreview",{require:{AccordionItemController:"^habboAccordionItem"},controllerAs:"AccordionItemPreviewController",template:'
',transclude:!0}),angular.module("accordion.item.content",["ngAnimate","events","templates"]).component("habboAccordionItemContent",{require:{AccordionItemController:"^habboAccordionItem"},controller:["$animate","$element","$scope","$timeout","EVENTS",function(e,t,r,n,o){function a(){d=u()}function i(){angular.isUndefined(d)&&a(),c({height:0,opacity:0},{height:d,opacity:1}),h.height=d}function s(){c({height:d,opacity:1},{height:0,opacity:0}),d=void 0,h.height=0,h.AccordionItemController.expanded=!1}function l(){0!==h.height&&n(function(){var e=u();c({height:h.height},{height:e}),h.height=e})}function c(t,r){f&&e.cancel(f),f=e.animate(p,t,r)}function u(){var e=p.css("height","").actual("outerHeight");return p.css("height",h.height),e}var f,d,h=this,p=t.children().first();h.height=0,r.$on(o.accordionOpen,i),r.$on(o.accordionClose,s),r.$on(o.accordionResize,function(){a(),l()}),r.$on(o.accordionUpdate,l),r.$watch("AccordionItemContentController.height",function(e){h.AccordionItemController.setContentHeight(e)})}],controllerAs:"AccordionItemContentController",templateUrl:"common/accordion/accordion-item-content.html",transclude:!0}),angular.module("accordion.item",["events","templates"]).component("habboAccordionItem",{require:{AccordionGridController:"^habboAccordionGrid"},controller:["$element","$scope","EVENTS",function(e,t,r){var n=this;n.expanded=!1,n.contentHeight=0,n.offset=0,n.$onInit=function(){n.AccordionGridController.registerItem(n)},n.toggle=function(){n.expanded?n.AccordionGridController.collapseItem(n):(n.offset=e.offset().top,n.AccordionGridController.expandItem(n))},n.setContentHeight=function(e){n.contentHeight=e},t.$watch("AccordionItemController.expanded",function(e,n){e?t.$broadcast(r.accordionOpen):n&&t.$broadcast(r.accordionClose)})}],controllerAs:"AccordionItemController",templateUrl:"common/accordion/accordion-item.html",transclude:!0}),angular.module("accordion.grid",["events"]).component("habboAccordionGrid",{controller:["$scope","$window","EVENTS",function(e,t,r){function n(){angular.forEach(l,s.collapseItem)}function o(e,t){return t&&parseInt(t.offset,10)",transclude:!0}),angular.module("shop",["config","header","locale","prepaid","router","shop.footer","store","system.data","tabs","templates","transactions"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePublic("shop",{url:"/shop?country","abstract":!0,controller:"ShopController",controllerAs:"ShopController",resolve:{countryCode:["$stateParams","SystemData",function(e,t){return e.country||t.getShopCountry()||"all"}]},templateUrl:"shop/shop.html"}),t.when("/credits","/shop")}]).controller("ShopController",["CONFIG",function(e){var t=this;t.earnCreditsEnabled="true"===e.offerToroEnabled}]),angular.module("shop.filters",["shop.sections"]).filter("credit",["SHOPSECTIONS","categoryFilter",function(e,t){return function(r){return _.filter(r,function(r){return!r.isWeeklyOffer&&!r.isDailyOffer&&t(e.CURRENCIES,r.categories)})}}]).filter("product",function(){return function(e){return _.filter(e,function(e){return 0===e.creditAmount&&!e.isWeeklyOffer&&!e.isDailyOffer})}}).filter("category",function(){return function(e,t){return t.every(function(t){return e.includes(t)})}}).filter("combo",["SHOPSECTIONS",function(e){return function(t){return e.COMBO.some(function(e){return e.length===t.length&&e.every(function(e){return t.includes(e)})})}}]).filter("membership",["MEMBERSHIPTYPES","SHOPSECTIONS","categoryFilter","comboFilter",function(e,t,r,n){return function(o,a){return _.filter(o,function(o){return o.isWeeklyOffer||o.isDailyOffer||a!==e.COMBO?1===o.categories.length&&r(a||t.MEMBERSHIPS,o.categories):n(o.categories)})}}]).filter("bundle",["SHOPSECTIONS","categoryFilter",function(e,t){return function(r){return _.filter(r,function(r){return!r.isWeeklyOffer&&!r.isDailyOffer&&t(e.BUNDLE,r.categories)})}}]).filter("dealOfWeek",function(){return function(e){return _.filter(e,function(e){return e.isWeeklyOffer})}}).filter("dealOfDay",function(){return function(e){return _.filter(e,function(e){return e.isDailyOffer})}}).filter("dealOfDayCredit",["SHOPSECTIONS","categoryFilter",function(e,t){return function(r){return _.filter(r,function(r){return t(e.CURRENCIES,r.categories)})}}]).filter("dealOfDayNotInChain",function(){return function(e){return _.filter(e,function(e){return!e.isChainOffer})}}).filter("dealOfDayChain",function(){return function(e){return _.filter(e,function(e){return e.isChainOffer})}}).filter("paymentCategory",function(){return function(e,t){return t?_.filter(e,function(e){return e.category===t}):e}}).filter("payment",["paymentCategoryFilter",function(e){return function(t,r){return _.filter(t,function(t){return e(t.paymentMethods,r).length>0})}}]),angular.module("shop.sections",[]).constant("SHOPSECTIONS",{MEMBERSHIPS:["HABBO_CLUB","BUILDERS_CLUB"],COMBO:[["CREDITS","HABBO_CLUB","BUILDERS_CLUB"],["HABBO_CLUB","BUILDERS_CLUB"],["CREDITS","BUILDERS_CLUB"],["CREDITS","HABBO_CLUB"]],BUNDLE:["BUNDLE"],CURRENCIES:["CREDITS","SILVER","SEASONAL_CURRENCY"]}).constant("MEMBERSHIPTYPES",{HABBOCLUB:["HABBO_CLUB"],BUILDERSCLUB:["BUILDERS_CLUB"],COMBO:"combo"}),angular.module("shop.service",["ngResource","config","safe.transform.response","security","storage"]).factory("Shop",["$resource","CONFIG","Session","httpCache","safeTransformResponse",function(e,t,r,n,o){function a(e){return e=e||[],1===e.length?[]:(e.unshift("all"),_.map(e,function(e){return{key:e,translateKey:"SHOP_PAYMENT_METHOD_"+e.toUpperCase()}}))}var i=e(t.shopUrl+"/:resource/:subresource",{},{countries:{url:t.shopUrl+"/:public/:subresource",method:"GET",isArray:!0,params:{subresource:"countries"},cache:n.longCache},inventory:{url:t.shopUrl+"/:public/inventory/:countryCode",method:"GET",transformResponse:o.fromJson(function(e){return e.paymentCategories=a(e.paymentCategories),e})},history:{url:t.shopUrl+"/history",method:"GET",isArray:!0}}),s=i.inventory,l=i.countries,c={};return i.inventory=function(){return arguments[0]=arguments[0]||{},_.extend(arguments[0],{"public":r.hasSession()?null:"public"}),s.apply(this,arguments)},i.inventoryGet=function(){return c},i.updateInventory=function(e){i.inventory({countryCode:e}).$promise.then(function(e){c=e})},i.countries=function(){return l.apply(this,[{"public":r.hasSession()?null:"public"}])},i}]),angular.module("settings.service",["config","google.analytics"]).factory("settings",["$http","CONFIG","googleAnalytics",function(e,t,r){var n={};return n.changePassword=function(n){return e.post(t.apiUrl+"/settings/password/change",n).then(function(e){return r.trackEvent("Password","Changed"),e})},n.changeEmail=function(n){return e.post(t.apiUrl+"/settings/email/change",n).then(function(e){return r.trackEvent("Email","Changed"),e})},n.resendActivationEmail=function(){return e.post(t.apiUrl+"/settings/email/verification-resend").then(function(e){return r.trackEvent("Email","Activation resent"),e})},n}]),angular.module("settings",["account.security","avatar.selection","email.change","header","locale","password.change","privacy.settings","router","security","system.data","tabs","templates","two.factor.auth","wallet.settings","web.pages"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePrivate("settings",{url:"/settings","abstract":!0,templateUrl:"settings/settings.html"}),t.when("/settings","/settings/privacy")}]),angular.module("security.service",["config","google.analytics","security.apple","security.fb","security.gdpr.notification","security.google","security.session","security.use.force.service"]).factory("security",["$http","$location","$q","$window","CONFIG","Session","appleSecurity","fbSecurity","googleAnalytics","googleSecurity","useForce",function(e,t,r,n,o,a,i,s,l,c,u){function f(e){return u.handleForces(e)["catch"](function(){return d()["finally"](function(){return r.reject({status:"force.pending"})})})}function d(){return e.post(o.apiUrl+"/public/authentication/logout")}function h(e){return a.destroy(),n.location.href=e||"/",r.defer().promise}var p={};return p.init=function(e){var t=e||n.session;return f(t).then(a.init)},p.login=function(r){return e.post(o.apiUrl+"/public/authentication/loginv2",r).then(function(e){return l.trackEvent("Login","Credentials",t.path()), e.data}).then(f).then(a.create)},p.appleInit=function(){return i.appleInit()},p.appleLogin=function(){return i.login().then(function(r){return e.post(o.apiUrl+"/public/authentication/applev2",r).then(function(e){return l.trackEvent("Login","Apple",t.path()),e.data}).then(f).then(a.create)})},p.fbLogin=function(){return s.login().then(function(r){return e.post(o.apiUrl+"/public/authentication/facebook",r).then(function(e){return l.trackEvent("Login","Facebook",t.path()),e.data}).then(f).then(a.create)})},p.googleLogin=function(){return c.login().then(function(r){return e.post(o.apiUrl+"/public/authentication/google",r).then(function(e){return l.trackEvent("Login","Google",t.path()),e.data}).then(f).then(a.create)})},p.logout=function(e){return d().then(function(){return l.trackEvent("Logout","Succeeded",t.path()),h(e)})["catch"](function(){return l.trackEvent("Logout","Failed",t.path()),r.reject()})},p.forceLogout=function(e){return d()["finally"](function(){return l.trackEvent("Logout","Forced",t.path()),h(e)})},p}]),angular.module("security",["security.authorization","security.credentials","security.fingerprint","security.login","security.safety.answering.modal","security.safety.lock","security.service","security.session"]),angular.module("security.google",[]).factory("googleSecurity",["$q",function(e){function t(){var t=e.defer();return"undefined"==typeof google?e.reject({data:{message:"google.gis.script_not_loaded"}}):(r=google.accounts.oauth2.initCodeClient({client_id:"588940583470-uepluja55fp7aoi8drh5ut2qpj4sspt7.apps.googleusercontent.com",scope:"https://www.googleapis.com/auth/userinfo.email",ux_mode:"popup",callback:function(e){if(e.error)t.reject(e);else{var r={authorizationCode:e.code};t.resolve(r)}}}),r.requestCode(),t.promise)}var r,n={};return n.login=function(){return t()},n}]),angular.module("security.fb",["ezfb"]).factory("fbSecurity",["$q","ezfb",function(e,t){function r(){var r=e.defer();return t.getLoginStatus(function(e){"connected"===e.status?r.resolve(e.authResponse):r.reject(e)}),r.promise}function n(){var r=e.defer();return t.login(function(e){"connected"===e.status?r.resolve(e.authResponse):r.reject(e)},{scope:"public_profile,email"}),r.promise}var o={};return o.login=function(){return t.isSdkLoaded()?r()["catch"](n):e.reject({data:{message:"fb.sdk_not_loaded"}})},o}]),angular.module("security.credentials",["config"]).factory("credentials",["CONFIG",function(e){var t={};return t.request=function(t){return(_(t.url).includes(e.apiUrl)||_(t.url).includes(e.extraDataUrl)||_(t.url).includes(e.shopUrl))&&(t.withCredentials=!0),t},t}]).config(["$httpProvider",function(e){e.interceptors.push("credentials")}]),angular.module("security.authorization",["security.login","security.safety.lock","security.session"]).factory("authorization",["$q","Session","loginModal","safetyLockModal",function(e,t,r,n){var o={};return o.hasAccessToPrivate=function(){return t.hasSession()?e.when():r.open()["catch"](function(){return e.reject({access:!1})})},o.hasAccessToTrusted=function(){return o.hasAccessToPrivate().then(function(){return t.isTrusted()?e.when():n.open()["catch"](function(){return e.reject({access:!1})})})},o.hasAccessToHabboAccountTrusted=function(){return o.hasAccessToTrusted().then(function(){return t.isHabboSessionWithEmail()?e.when():e.reject({access:!1})})},o}]),angular.module("security.apple",["config"]).factory("appleSecurity",["$q","CONFIG",function(e,t){function r(){var t=e.defer();return angular.isUndefined(AppleID)?e.reject({data:{message:"apple.script_not_loaded"}}):(window.AppleID.auth.signIn().then(function(e){e.error?t.reject(e):t.resolve({identityToken:e.authorization.id_token})})["catch"](function(e){t.reject(e)}),t.promise)}function n(){window.AppleID.auth.init({clientId:"com.sulake.habbo.ios.signin",scope:"email",redirectURI:t.appleRedirectURI,usePopup:!0})}var o={};return o.login=function(){return r()},o.appleInit=function(){return n()},o}]),angular.module("router.service",["security","ui.router"]).config(["$locationProvider","$urlMatcherFactoryProvider",function(e,t){e.hashPrefix("!"),e.html5Mode({enabled:!0,requireBase:!1}),t.strictMode(!1)}]).config(["$stateProvider",function(e){function t(e,t,l){return t["abstract"]!==!0&&(r("auth",t),t.resolve.auth=["$injector",function(e){return o=o||e.get("$q"),a=a||e.get("$state"),i=i||e.get("authorization"),i[l]()["catch"](n)}]),s(e,t)}function r(e,t){t.resolve=t.resolve||{},_(t.resolve).keys().forEach(function(r){_(t.resolve[r]).includes(e)||t.resolve[r].splice(t.resolve[r].length-1,0,e)})}function n(e){return a.hasPrevious()||a.go("home.news"),o.reject(e)}var o,a,i,s=e.state;e.statePublic=function(e,t){return s(e,t)},e.statePrivate=function(e,r){return t(e,r,"hasAccessToPrivate")},e.state=function(e,r){return t(e,r,"hasAccessToTrusted")},e.stateHabboAccountTrusted=function(e,r){return t(e,r,"hasAccessToHabboAccountTrusted")}}]).run(["$rootScope","$state","security",function(e,t,r){var n=e.$on("$stateChangeStart",function(e,o,a){e.preventDefault(),r.init()["finally"](function(){n(),t.go(o,a)})})}]),angular.module("refresh.dosarrest.cookie",[]).factory("refreshDosarrestCookie",["$q","$window",function(e,t){function r(e){return e.match(/\.html$/)}function n(e){return _.isString(e)&&o.test(e)}var o=/Client Validation<\/title>/gi,a={};return a.response=function(o){var a=e.defer();return!r(o.config.url)&&n(o.data)?t.location.reload():a.resolve(o),a.promise},a}]).config(["$httpProvider",function(e){e.interceptors.push("refreshDosarrestCookie")}]),angular.module("prompt.safety.lock",["http.buffer","security"]).factory("promptSafetyLock",["$injector","$q","httpBuffer",function(e,t,r){function n(e){return e.data&&"account.safety_locked"===e.data.error}function o(e){return _(e).includes("/public/forgotPassword")}function a(e){var n=t.defer();return r.pushError(e.config,n),i().open().then(r.flush)["catch"](function(){r.reject(403)}),n.promise}function i(){return s||e.get("safetyLockModal")}var s,l={};return l.responseError=function(e){return e&&n(e)&&!o(e.config.url)?a(e):t.reject(e)},l}]).config(["$httpProvider",function(e){e.interceptors.push("promptSafetyLock")}]),angular.module("prompt.login",["http.buffer","security"]).factory("promptLogin",["$injector","$location","$q","Session","httpBuffer",function(e,t,r,n,o){function a(e){return _(e).includes("/login")||_(e).includes("/facebook")||_(e).includes("/logout")||_(e).includes("/google")||_(e).includes("/rpx")}function i(){return u||e.get("security")}function s(e){var t=r.defer(),n=l();return o.pushError(e.config,t),n.isOpen()||n.open().then(o.flush)["catch"](function(){o.reject(401)}),t.promise}function l(){return c||e.get("loginModal")}var c,u,f={};return f.responseError=function(e){return e&&401===e.status&&!a(e.config.url)?n.hasSession()?i().forceLogout(t.url()):s(e):r.reject(e)},f}]).config(["$httpProvider",function(e){e.interceptors.push("promptLogin")}]),angular.module("error.maintenance",["notifier"]).factory("maintenanceError",["$q","notifier",function(e,t){function r(e){return _(e).includes("/preferences/save")}var n={};return n.responseError=function(n){return 503!==n.status||r(n.config.url)||t.error("ERROR_SERVER_MAINTENANCE"),e.reject(n)},n}]).config(["$httpProvider",function(e){e.interceptors.push("maintenanceError")}]),angular.module("router",["ban.error","error.maintenance","head","prerender","prompt.login","prompt.safety.lock","refresh.dosarrest.cookie","router.service","scrolltop","spinner"]),angular.module("http.buffer",[]).factory("httpBuffer",["$injector",function(e){function t(t,n){r=r||e.get("$http"),r(t).then(function(e){n.resolve(e)})["catch"](function(e){n.reject(e)})}var r,n={},o=[];return n.pushError=function(e,t){o.push({config:e,deferred:t})},n.flush=function(){angular.forEach(o,function(e){t(e.config,e.deferred)}),o=[]},n.reject=function(e){angular.forEach(o,function(t){t.deferred.reject({status:e,data:{}})}),o=[]},n}]),angular.module("room",["flash","locale","remove.on.error","room.open","room.restricted","room.service","router","templates"]).config(["$stateProvider",function(e){e.statePublic("room",{url:"/room/:id",controller:"RoomController",controllerAs:"RoomController",onEnter:["room","Head",function(e,t){function r(e){return e.replace(/[|ƒ†‡‘•—¥ª¬±µ¶º»]/g," ").replace(/[ ]+/g," ").trim()}t.title=r(e.name)}],resolve:{room:["$stateParams","Room",function(e,t){return t.get({id:e.id}).$promise}]},templateUrl:"room/room.html"})}]).controller("RoomController",["room",function(e){var t=this;t.room=e}]),angular.module("room.service",["ngResource","config","storage"]).factory("Room",["$resource","CONFIG","httpCache",function(e,t,r){return e(t.apiUrl+"/public/rooms/:id",null,{get:{method:"GET",cache:r.shortCache}})}]),angular.module("registration.service",["config","google.analytics","registration.age.gate","security"]).factory("registration",["$http","$q","CONFIG","ageGate","googleAnalytics","security",function(e,t,r,n,o,a){var i={};return i.register=function(i){return n.register(i.birthdate),n.isLocked()?t.reject({data:{error:"age"}}):e.post(r.apiUrl+"/public/registration/new",i).then(function(e){var r=t.defer();return 204===e.status?(o.trackEvent("Registration","Registered","Staff"),r.resolve(e)):(o.trackEvent("Registration","Registered","User"),a.init(e.data).then(function(){r.resolve(e)})),r.promise})},i}]),angular.module("registration",["events","header","hotel.closed","locale","registration.form","router","security","system.data","templates"]).config(["$stateProvider",function(e){e.statePublic("registration",{url:"/registration?captchaToken",controller:"RegistrationController",controllerAs:"RegistrationController",data:{title:"HEAD_TITLE_REGISTRATION"},templateUrl:"registration/registration.html"})}]).controller("RegistrationController",["SystemData",function(e){var t=this;t.isOpen=e.isHotelOpen()}]).run(["$rootScope","$state","Session",function(e,t,r){e.$on("$stateChangeStart",function(e,n){"registration"===n.name&&(r.hasSession()||bowser.android||bowser.ios)&&(e.preventDefault(),t.go("home.news"))})}]),angular.module("registration.form",["ngMessages","birthdate","config","form","google.analytics","hCAPTCHA","hotel.button.native.modal","locale","notifier","registration.policies","registration.profileVisibility","registration.service","router","security","system.data","templates"]).component("habboRegistrationForm",{controller:["$location","$q","$scope","$state","$stateParams","$window","CAPTCHA_EVENTS","CONFIG","CaptchaConfig","EVENTS","SystemData","googleAnalytics","hCaptchaService","nativeHotelModal","notifier","registration",function(e,t,r,n,o,a,i,s,l,c,u,f,d,h,p,m){var g=this;g.registerInProgress=!1,g.captchaConfig={provider:null},g.hasCaptchaToken=Boolean(o.captchaToken),g.registration={captchaToken:o.captchaToken,profileVisibilityPublic:!1},g.registerComplete=!1,g.$onInit=function(){l.get({action:"signup"}).$promise.then(function(e){g.captchaConfig=e})},r.widgetId=t.defer(),r.setWidgetId=function(e){r.widgetId.resolve(e)},g.submit=function(){if(r.registrationForm.$valid)return g.registerInProgress=!0,l.get({action:"signup"}).$promise.then(function(e){return"hcaptcha"===e.provider?r.widgetId.promise.then(function(t){return d.executeWithConfig(t,e)}).then(function(e){return g.registration.captchaToken=e,g.register()}):g.register()})},g.register=function(){var e=_(r.registrationForm.$error).values().flatten().map("$name").uniq().sort().join(", ");f.trackEvent("Registration","Clicked",e),m.register(g.registration).then(function(e){return 204!==e.status?g.goToHotel():void n.go("home.news")})["catch"](function(e){var t=e.data&&e.data.error;"age"===t?p.error("ERROR_BIRTHDATE_AGE"):("registration_email"===t||"registration.error.invalid_email"===t?r.$broadcast("remote-data-invalid","emailInvalid"):"registration_email_in_use"===t?r.$broadcast("remote-data-invalid","emailUsedInRegistration"):429===e.status?p.error("ERROR_TOO_MANY_ATTEMPTS",{time:moment(e.data.nextValidRequestDate).fromNow(!0)}):p.error("ERROR_SERVER"),r.$broadcast(i.reset))})["finally"](function(){g.registerInProgress=!1})},g.goToHotel=function(){return g.registerComplete=!0,h.open().then(function(){n.go("home.news")},function(){n.go("home.news")})}}],controllerAs:"RegistrationFormController",templateUrl:"registration/registration-form.html"}),angular.module("registration.age.gate",["config","google.analytics"]).factory("ageGate",["CONFIG","googleAnalytics",function(e,t){function r(t){return moment({day:t.day,month:t.month-1,year:t.year}).add(e.minAge,"years").isAfter(moment())}var n={},o=!1;return n.register=function(e){r(e)&&(o=!0,t.trackEvent("Registration","Age gate",moment(e).format("YYYY-MM-DD")))},n.isLocked=function(){return o},n}]),angular.module("profile",["header","locale","profile.creations","profile.header","profile.item.lists","profile.modal","profile.service","router","security","templates"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePublic("profile",{url:"/profile/:name",controller:"ProfileController",controllerAs:"ProfileController",data:{title:"HEAD_TITLE_PROFILE"},resolve:{profile:["$stateParams","Profile",function(e,t){return t.get({name:e.name}).$promise}]},templateUrl:"profile/profile.html"}),t.when("/home/:name","/profile/:name"),t.when("/profile","/")}]).controller("ProfileController",["CreationsProfile","Profile","Session","profile",function(e,t,r,n){var o=this;o.profile=n,r.hasSession()&&n.uniqueId===r.user.uniqueId?o.items=t["private"]():n.profileVisible&&(o.items=t.items({uniqueId:n.uniqueId})),o.stories=e.stories({uniqueId:n.uniqueId}),o.photos=e.photos({uniqueId:n.uniqueId}),o.random=function(){return.5-Math.random()}}]),angular.module("profile.service",["ngResource","config","storage"]).factory("Profile",["$resource","CONFIG","httpCache",function(e,t,r){return e(t.apiUrl+"/public/users/:uniqueId/:resource",null,{get:{method:"GET",cache:r.shortCache},items:{method:"GET",params:{resource:"profile"},cache:r.shortCache},"private":{method:"GET",url:t.apiUrl+"/user/profile",cache:r.shortCache}})}]),angular.module("profile.creations",["ngResource","config","profile.service","reported.photos","safe.transform.response","storage"]).factory("CreationsProfile",["$resource","CONFIG","Profile","httpCache","reportedPhotosFilter","safeTransformResponse",function(e,t,r,n,o,a){function i(e){return function(t){return r.get({name:t}).$promise.then(function(t){return s[e]({uniqueId:t.uniqueId}).$promise})}}var s=e(t.extraDataUrl+"/public/users/:uniqueId/:resource",null,{photos:{method:"GET",isArray:!0,params:{resource:"photos"},cache:n.shortCache,transformResponse:a.fromJson(function(e){var t=o(e);return _.map(t,function(e){return _.assign(e,{url:"https:"+e.url,contentHeight:320,contentWidth:320,parentTitle:"PHOTOS_TITLE"})})})},stories:{method:"GET",isArray:!0,params:{resource:"stories"},cache:n.shortCache,transformResponse:a.fromJson(function(e){return _.map(e,function(e){return e.url&&e.url.indexOf("https:")===-1&&(e.url="https:"+e.url),e})})}});return s.photosForUser=i("photos"),s.storiesForUser=i("stories"),s}]),angular.module("playing.habbo",["header","locale","router","tabs","templates","web.pages"]).config(["$stateProvider","$urlRouterProvider",function(e,t){var r=["what-is-habbo","how-to-play","habbo-way","safety","help","privacy-notice","terms-of-service"];e.statePublic("playingHabbo",{url:"/playing-habbo",templateUrl:"playing-habbo/playing-habbo.html","abstract":!0}),_.forEach(r,function(t){var r="HEAD_TITLE_PLAYING_HABBO_"+t.toUpperCase().replace(/-/g,"_");e.statePublic("playingHabbo."+t,{url:"/"+t,controller:"PlayingHabboController",controllerAs:"PlayingHabboController",data:{title:r},resolve:{page:["webPages",function(e){return e.get("playing_habbo/"+_.snakeCase(t))}]},templateUrl:"playing-habbo/"+t+".html"})}),t.when("/playing-habbo","/playing-habbo/what-is-habbo")}]).controller("PlayingHabboController",["page",function(e){var t=this;t.page=e}]),angular.module("password.reset.service",["config","google.analytics"]).factory("passwordReset",["$http","CONFIG","googleAnalytics",function(e,t,r){var n={};return n.send=function(n){return e.post(t.apiUrl+"/public/forgotPassword/send",{email:n}).then(function(e){return r.trackEvent("Password","Reset requested"),e})},n.changePassword=function(n){return e.post(t.apiUrl+"/public/forgotPassword/changePassword",n).then(function(e){return r.trackEvent("Password","Password reset"),e})},n}]),angular.module("password.reset",["header","locale","password.reset.form","router","security","templates"]).config(["$stateProvider",function(e){e.statePublic("resetPassword",{url:"/reset-password/:token",controller:"PasswordResetController",controllerAs:"PasswordResetController",data:{title:"HEAD_TITLE_PASSWORD_RESET"},onEnter:["$location","security","Session",function(e,t,r){if(r.hasSession())return t.forceLogout(e.url())}],templateUrl:"password-reset/password-reset.html"})}]).controller("PasswordResetController",["$stateParams",function(e){var t=this;t.token=e.token}]),angular.module("password.reset.form",["form","locale","notifier","password.reset.service","router","security","templates"]).component("habboPasswordResetForm",{bindings:{token:"<"},controller:["$scope","$state","notifier","passwordReset","safetyAnsweringModal",function(e,t,r,n,o){function a(){r.success("PASSWORD_RESET_SUCCESS"),t.go("home.news")}var i=this;i.passwords={},i.updateInProgress=!1,i.update=function(){if(e.resetPasswordForm.$valid){i.updateInProgress=!0;var t={token:i.token,password:i.passwords.password};n.changePassword(t).then(a)["catch"](function(i){var s=i.data&&i.data.error;return 403===i.status&&"account.safety_locked"===s?o.open(i.data.questions,t,n.changePassword).then(a):void(404===i.status?r.error("ERROR_PASSWORD_RESET_EXPIRED"):"password.too_similar_to_username"===s?e.$broadcast("remote-data-invalid","passwordName"):"password.too_similar_to_email"===s?e.$broadcast("remote-data-invalid","passwordEmail"):"password.used_earlier"===s?e.$broadcast("remote-data-invalid","passwordUsed"):r.error("ERROR_SERVER"))})["finally"](function(){i.updateInProgress=!1})}}}],controllerAs:"PasswordResetFormController",templateUrl:"password-reset/password-reset-form.html"}),angular.module("not.found",["google.analytics","header","locale","router","templates"]).config(["$stateProvider",function(e){e.statePublic("notFound",{templateUrl:"not-found/not-found.html",data:{title:"HEAD_TITLE_NOT_FOUND"}})}]).config(["$urlRouterProvider",function(e){e.otherwise(function(e,t){var r=e.get("googleAnalytics"),n=e.get("$state");r.trackEvent("Error","Not found",t.url()),n.go("notFound")})}]).run(["$location","$log","$rootScope","$state","googleAnalytics",function(e,t,r,n,o){r.$on("$stateChangeError",function(r,a,i,s,l,c){c&&c.access===!1||(r.preventDefault(),t.error(c),o.trackEvent("Error","Not found",e.url()),n.go("notFound"))})}]),angular.module("logout",["locale","notifier","router","security"]).config(["$stateProvider",function(e){e.statePublic("logout",{url:"/logout",resolve:{logout:["$state","notifier","security",function(e,t,r){return r.logout()["catch"](function(){e.go("home.news"),t.errorSticky("ERROR_LOGOUT_TITLE","ERROR_LOGOUT_TEXT")})}]}})}]),angular.module("hotel",["client","events","locale","router","security","templates"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePrivate("hotel",{url:"/hotel?link&room",controller:"HotelController",data:{title:"HEAD_TITLE_HOTEL"},template:'<div class="hotel"></div>'}),t.when("/client","/hotel"),t.when("/client/v2","/hotel"),t.when("/hotelv2","/hotel")}]).controller("HotelController",["$rootScope","$stateParams","$timeout","EVENTS","Session","safetyLockModal",function(e,t,r,n,o,a){o.isTrusted()||a.open(),r(function(){e.$broadcast(n.clientOpen,t)})}]),angular.module("hotel.permissions",["ngResource","config","storage"]).factory("ClientPermissionResource",["$resource","CONFIG","httpCache",function(e,t,r){return e(t.apiUrl+"/client/permissions",null,{get:{method:"GET",cache:r.shortCache}})}]).factory("HasClientPermission",["$q","ClientPermissionResource",function(e,t){var r={},n=t.get();return r.to=function(t){return n.$promise.then(function(r){return r[t]===!0?e.resolve(!0):e.resolve(!1)})["catch"](function(){return e.resolve(!1)})},r}]),angular.module("home",["header","locale","messaging","news","register.banner","router","tabs","templates"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePublic("home",{url:"?captchaToken","abstract":!0,controller:"HomeController",controllerAs:"HomeController",templateUrl:"home/home.html"}),t.when("/login_popup","/")}]).controller("HomeController",["$state","Session",function(e,t){var r=this;r.hasHeaderLarge=function(){return!t.hasSession()&&e.is("home.news")}}]),angular.module("help.login",["router","security","zendesk.url"]).config(["$stateProvider",function(e){e.statePrivate("helpLogin",{url:"/help-login?return_to",controllerAs:"HelpLoginController",controller:"HelpLoginController",data:{title:"HEAD_TITLE_HELP_LOGIN"},templateUrl:"help-login/help-login.html"})}]).controller("HelpLoginController",["$log","$sce","$stateParams","zendeskService",function(e,t,r,n){var o=this;o.loaded=!1,o.valid=!1,o.redirectUrl=null,o.jwt=null,o.error=null,e.info(r),n.getHelpFormData(n.ensureHelpUrl(r.return_to)).then(function(r){e.info(r),o.valid=r.valid,o.redirectUrl=t.trustAsResourceUrl(r.redirectUrl),o.jwt=r.jwt,o.error="HELP_LOGIN_ERROR_"+r.reason})["catch"](function(){o.valid=!1,o.error="HELP_LOGIN_ERROR_SERVER"})["finally"](function(){o.loaded=!0})}]),angular.module("habbo.nft",["header","locale","router","tabs","templates","web.pages"]).config(["$stateProvider","$urlRouterProvider",function(e,t){var r=["habbo-avatars","nft-furni-and-clothing"];e.statePublic("habboNFT",{url:"/habbo-nft",templateUrl:"habbo-nft/habbo-nft.html","abstract":!0}),_.forEach(r,function(t){var r="HEAD_TITLE_HABBO_NFT_"+t.toUpperCase().replace(/-/g,"_");e.statePublic("habboNFT."+t,{url:"/"+t,controller:"HabboNFTController",controllerAs:"HabboNFTController",data:{title:r},resolve:{page:["webPages",function(e){return e.get("habbo_nft/"+_.snakeCase(t))}]},templateUrl:"habbo-nft/"+t+".html"})}),t.when("/habbo-nft","/habbo-nft/habbo-avatars")}]).controller("HabboNFTController",["page",function(e){var t=this;t.page=e}]),angular.module("dev",["header","router","templates","web.pages"]).config(["$stateProvider",function(e){e.statePublic("dev",{url:"/dev/:page",templateUrl:"dev/dev.html",controller:"DevController",controllerAs:"DevController"})}]).controller("DevController",["$stateParams",function(e){var t=this;t.page=e.page.replace(/-/g,"_")}]),angular.module("ui.router").config(["$provide",function(e){e.decorator("$state",["$delegate","$rootScope",function(e,t){var r,n;return e.hasPrevious=function(){return Boolean(r)&&Boolean(r.name)},e.back=function(){e.hasPrevious()?e.go(r.name,n):e.go("home.news")},t.$on("$stateChangeSuccess",function(e,t,o,a,i){r=a,n=i}),e}])}]),angular.module("ui.bootstrap").config(["$provide",function(e){e.decorator("$uibModal",["$delegate","$rootScope",function(e,t){var r=e.open;return e.open=function(e){var n,o,a=r(e);return a.open=!0,n=t.$on("$stateChangeSuccess",function(){a.dismiss("cancel")}),o=t.$on("$locationChangeSuccess",function(e,t,r){t!==r&&a.dismiss("cancel")}),a.result["finally"](function(){a.open=!1,n(),o()}),a},e}])}]),angular.module("ezfb").config(["$provide","ezfbProvider",function(e,t){var r=!1,n=!0;t.setLoadSDKFunction(["$window","$document","ezfbAsyncInit","ezfbLocale",function(e,t,o,a){var i=t[0].createElement("script");i.id="facebook-jssdk",i.async=!0,i.src=n?"//connect.facebook.net/"+a+"/sdk.js":"//connect.facebook.net/"+a+"/sdk/debug.js",t[0].body.appendChild(i),e.fbAsyncInit=function(){o(),r=!0}}]),e.decorator("ezfb",["$delegate",function(e){return e.isSdkLoaded=function(){return r},e}])}]),angular.module("community",["article","category","fansites","header","photos","rooms","router","tabs","templates"]).config(["$stateProvider","$urlRouterProvider",function(e,t){e.statePublic("community",{url:"/community","abstract":!0,templateUrl:"community/community.html"}),t.when("/community","/community/photos")}]),angular.module("activate.service",["config","google.analytics","security"]).factory("activate",["$http","CONFIG","Session","googleAnalytics",function(e,t,r,n){return function(o){return e.post(t.apiUrl+"/public/registration/activate",{token:o}).then(function(e){n.trackEvent("Email","Activated"),200===e.status&&r.hasSession()&&r.update(e.data)})}}]),angular.module("activate",["activate.service","locale","notifier","router"]).config(["$stateProvider",function(e){e.statePublic("activate",{url:"/activate/:token",controller:"ActivateController",resolve:{activation:["$stateParams","activate",function(e,t){return t(e.token)}]}})}]).controller("ActivateController",["$state","notifier",function(e,t){t.success("ACTIVATE_SUCCESS"),e.go("home.news")}]),angular.module("templates",[]).run(["$templateCache",function(e){e.put("community/community.html",'<habbo-header-small active="community"></habbo-header-small><habbo-tabs><habbo-tab path="/community/photos" translation-key="COMMUNITY_PHOTOS_TAB"></habbo-tab><habbo-tab path="/community/rooms" translation-key="COMMUNITY_ROOMS_TAB"></habbo-tab><habbo-tab path="/community/fansites" translation-key="COMMUNITY_FANSITES_TAB"></habbo-tab><habbo-tab path="/community/category" alternative-path="/community/article" translation-key="COMMUNITY_NEWS_TAB"></habbo-tab></habbo-tabs><main ui-view></main>'),e.put("dev/dev.html",'<habbo-header-small></habbo-header-small><section class="wrapper wrapper--content"><habbo-web-pages key="{{:: \'dev/\' + DevController.page}}" class="main"></habbo-web-pages><habbo-web-pages key="{{:: \'dev/\' + DevController.page + \'_box\'}}" class="aside aside--box aside--push-down"></habbo-web-pages></section>'),e.put("habbo-nft/habbo-avatars.html",'<article class="main main--fixed static-content"><habbo-compile data="HabboNFTController.page"></habbo-compile></article>'),e.put("habbo-nft/habbo-nft.html",'<habbo-header-small active="habboNFT"></habbo-header-small><habbo-tabs><habbo-tab path="/habbo-nft/habbo-avatars" translation-key="HABBO_NFT_HABBO_AVATARS"></habbo-tab><habbo-tab path="/habbo-nft/nft-furni-and-clothing" translation-key="HABBO_NFT_FURNI_AND_CLOTHING"></habbo-tab></habbo-tabs><main class="wrapper wrapper--content" ui-view></main>'),e.put("habbo-nft/nft-furni-and-clothing.html",'<article class="main main--fixed static-content"><habbo-compile data="HabboNFTController.page"></habbo-compile></article>'),e.put("help-login/help-login.html",'<div class="help-login-content" ng-if="HelpLoginController.loaded && HelpLoginController.valid"><div class="text" translate="HELP_LOGIN_TITLE"></div><form method="post" action="{{HelpLoginController.redirectUrl}}" novalidate><input type="hidden" name="jwt" value="{{HelpLoginController.jwt}}"><div class="form__field"><button type="submit" translate="HELP_LOGIN_PROCEED"></button></div><div class="text"><span translate="HELP_LOGIN_RETURN_TO_HOTEL"></span> <a href="/" translate="HELP_LOGIN_RETURN_TO_HOTEL_LINK"></a></div></form></div><div class="help-login-content help-login-error" ng-if="HelpLoginController.loaded && !HelpLoginController.valid"><div class="text-title" translate="HELP_LOGIN_ERROR"></div><div class="text"><span translate="{{HelpLoginController.error}}"></span> <a href="/" translate="HELP_LOGIN_ERROR_TO_HOTEL_LINK"></a></div></div>'),e.put("home/home.html",'<habbo-header-small ng-if="!HomeController.hasHeaderLarge()" active="home"></habbo-header-small><habbo-header-large ng-if="HomeController.hasHeaderLarge()" active="home"></habbo-header-large><habbo-tabs><habbo-tab path="/" strict-path="true" translation-key="HOME_NEWS_TAB"></habbo-tab><habbo-tab habbo-require-session path="/messaging" translation-key="HOME_MESSAGING_TAB"></habbo-tab></habbo-tabs><main class="wrapper wrapper--content" ui-view></main>'),e.put("not-found/not-found.html",'<habbo-header-small></habbo-header-small><main class="wrapper wrapper--content not-found"><section class="not-found__content"><h3 translate="NOT_FOUND_PAGE_TITLE"></h3><div translate="NOT_FOUND_PAGE_TEXT"></div></section></main>'),e.put("password-reset/password-reset-form.html",'<form ng-submit="PasswordResetFormController.update()" name="resetPasswordForm" novalidate class="form form--left"><habbo-password-new is-new="true" password-new="PasswordResetFormController.passwords.password" password-new-repeated="PasswordResetFormController.passwords.passwordRepeated"></habbo-password-new><div class="form__footer"><button ng-disabled="PasswordResetFormController.updateInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_CHANGE"></button></div></form>'),e.put("password-reset/password-reset.html",'<habbo-header-small></habbo-header-small><main class="wrapper wrapper--content"><h1 translate="PASSWORD_RESET_TITLE"></h1><habbo-password-reset-form token="PasswordResetController.token" class="password-reset-form"></habbo-password-reset-form></main>'),e.put("playing-habbo/habbo-way.html",'<article class="main main--fixed static-content"><habbo-compile data="PlayingHabboController.page"></habbo-compile></article><habbo-web-pages key="common/box_learn_how_to_stay_safe" class="aside aside--box aside--fixed"></habbo-web-pages><habbo-web-pages key="common/box_parents_guide" class="aside aside--box aside--fixed"></habbo-web-pages>'),e.put("playing-habbo/help.html",'<article class="main main--fixed static-content"><habbo-compile data="PlayingHabboController.page"></habbo-compile></article><habbo-web-pages key="playing_habbo/box_helplines" class="aside aside--box aside--fixed aside--push-down"></habbo-web-pages>'),e.put("playing-habbo/how-to-play.html",'<article class="main main--fixed static-content"><habbo-compile data="PlayingHabboController.page"></habbo-compile></article><habbo-web-pages key="common/box_habbo_way" class="aside aside--box aside--fixed"></habbo-web-pages><habbo-web-pages key="common/box_learn_how_to_stay_safe" class="aside aside--box aside--fixed"></habbo-web-pages><habbo-web-pages key="common/box_need_help" class="aside aside--box aside--fixed"></habbo-web-pages>'),e.put("playing-habbo/playing-habbo.html",'<habbo-header-small active="playingHabbo"></habbo-header-small><habbo-tabs><habbo-tab path="/playing-habbo/what-is-habbo" translation-key="PLAYING_HABBO_WHAT_IS_HABBO_TAB"></habbo-tab><habbo-tab path="/playing-habbo/how-to-play" translation-key="PLAYING_HABBO_HOW_TO_PLAY_TAB"></habbo-tab><habbo-tab path="/playing-habbo/habbo-way" translation-key="PLAYING_HABBO_HABBO_WAY_TAB"></habbo-tab><habbo-tab path="/playing-habbo/safety" translation-key="PLAYING_HABBO_SAFETY_TAB"></habbo-tab><habbo-tab path="/playing-habbo/help" translation-key="PLAYING_HABBO_HELP_TAB"></habbo-tab></habbo-tabs><main class="wrapper wrapper--content" ui-view></main>'),e.put("playing-habbo/privacy-notice.html",'<article class="main main--fixed static-content"><habbo-compile data="PlayingHabboController.page"></habbo-compile></article>'),e.put("playing-habbo/safety.html",'<article class="main main--fixed static-content"><habbo-compile data="PlayingHabboController.page"></habbo-compile></article><habbo-web-pages key="common/box_parents_guide" class="aside aside--box aside--fixed"></habbo-web-pages><habbo-web-pages key="common/box_need_help" class="aside aside--box aside--fixed"></habbo-web-pages>'),e.put("playing-habbo/terms-of-service.html",'<article class="main main--fixed static-content"><habbo-compile data="PlayingHabboController.page"></habbo-compile></article>'),e.put("playing-habbo/what-is-habbo.html",'<article class="main main--fixed static-content"><habbo-compile data="PlayingHabboController.page"></habbo-compile></article><habbo-web-pages key="common/box_how_to_play" class="aside aside--box aside--fixed"></habbo-web-pages><habbo-web-pages key="common/box_habbo_way" class="aside aside--box aside--fixed"></habbo-web-pages><habbo-web-pages key="common/box_parents_guide" class="aside aside--box aside--fixed"></habbo-web-pages>'), e.put("profile/profile.html",'<habbo-header-small class="profile__header"><habbo-profile-header figure="{{:: ProfileController.profile.figureString}}" user="{{:: ProfileController.profile.name}}" motto="{{:: ProfileController.profile.motto}}" profile="true"><h1>{{:: ProfileController.profile.name}}</h1><div ng-if="ProfileController.profile.motto" class="profile__motto">{{:: ProfileController.profile.motto}}</div></habbo-profile-header></habbo-header-small><main class="wrapper wrapper--content"><div ng-if="ProfileController.items.badges.length > 0\n || ProfileController.items.friends.length > 0\n || ProfileController.items.rooms.length > 0\n || ProfileController.items.groups.length > 0" class="profile__section"><div ng-if="ProfileController.profile.selectedBadges.length > 0" class="profile__card__wrapper--badges"><section class="profile__card__aligner"><div class="profile__card"><h2 translate="PROFILE_BADGES_TITLE" class="profile__card__title"></h2><habbo-badge-list badges="ProfileController.profile.selectedBadges" class="item-list--grid"></habbo-badge-list><div class="profile__card__footer"><habbo-profile-modal items="ProfileController.items.badges" type="badges"></habbo-profile-modal></div></div></section></div><div ng-if="ProfileController.items.friends.length > 0" class="profile__card__wrapper--friends"><section class="profile__card__aligner"><div class="profile__card"><h2 class="profile__card__title"><span translate="PROFILE_FRIENDS_TITLE"></span> <span class="profile__friends__count" translate="PROFILE_FRIENDS_COUNT" translate-values="{ current: ProfileController.items.friends.length > 5 ? 5 : ProfileController.items.friends.length, all: ProfileController.items.friends.length }"></span></h2><habbo-friend-list ng-init="fiveFriends = (ProfileController.items.friends | orderBy: random | limitTo: 5)" friends="fiveFriends" class="item-list--grid"></habbo-friend-list><div class="profile__card__footer"><habbo-profile-modal items="ProfileController.items.friends" type="friends"></habbo-profile-modal></div></div></section></div><div ng-if="ProfileController.items.rooms.length > 0" class="profile__card__wrapper--rooms"><section class="profile__card__aligner"><div class="profile__card"><h2 translate="PROFILE_ROOMS_TITLE" class="profile__card__title"></h2><habbo-room-list ng-init="fiveRooms = (ProfileController.items.rooms | orderBy: random | limitTo: 5)" rooms="fiveRooms" class="item-list--grid"></habbo-room-list><div class="profile__card__footer"><habbo-profile-modal items="ProfileController.items.rooms" type="rooms"></habbo-profile-modal></div></div></section></div><div ng-if="ProfileController.items.groups.length > 0" class="profile__card__wrapper--groups"><section class="profile__card__aligner"><div class="profile__card"><h2 translate="PROFILE_GROUPS_TITLE" class="profile__card__title"></h2><habbo-group-list ng-init="fiveGroups = (ProfileController.items.groups | orderBy: random | limitTo: 5)" groups="fiveGroups" class="item-list--grid"></habbo-group-list><div class="profile__card__footer"><habbo-profile-modal items="ProfileController.items.groups" type="groups"></habbo-profile-modal></div></div></section></div></div></main><section ng-if="ProfileController.photos.length > 0" class="wrapper wrapper--content"><div class="profile__creations"><h2 class="profile__creations__title" translate="PROFILE_PHOTOS_TITLE"></h2><habbo-columns-profile items="ProfileController.photos"></habbo-columns-profile><a href="/community/photos" class="profile__photos__link" translate="PHOTOS_TITLE"></a></div></section><section ng-if="ProfileController.stories.length > 0" class="wrapper wrapper--content"><div class="profile__creations"><h2 class="profile__creations__title" translate="PROFILE_CREATIONS_TITLE"></h2><habbo-columns-profile items="ProfileController.stories"></habbo-columns-profile></div></section><footer class="wrapper wrapper--content"><h2 class="profile__joined" translate="PROFILE_JOINED" translate-values="{ date: (ProfileController.profile.memberSince | date: \'longDate\') }"></h2><div class="profile__hearts"><i class="icon icon--heart"></i><i class="icon icon--heart"></i><i class="icon icon--heart"></i></div></footer>'),e.put("registration/registration-form.html",'<h1 translate="REGISTRATION_TITLE"></h1><form ng-submit="RegistrationFormController.submit()" name="registrationForm" novalidate ng-hide="RegistrationFormController.registerComplete" class="form form--left registration-form"><div class="registration-form__social__wrapper"><div class="registration-form__social"><h3 class="registration-form__connect" translate="REGISTRATION_SOCIAL"></h3><habbo-facebook-connect on-login="RegistrationFormController.goToHotel()" type="large" translation-key="FACEBOOK"></habbo-facebook-connect><habbo-google-connect on-login="RegistrationFormController.goToHotel()" type="large" translation-key="GOOGLE"></habbo-google-connect><habbo-apple-connect on-login="RegistrationFormController.goToHotel()" type="large" translation-key="APPLE_SIGN_IN"></habbo-apple-connect></div></div><habbo-email-address email-address="RegistrationFormController.registration.email"><label for="email-address" class="form__label" translate="FORM_EMAIL_LABEL"></label><p translate="EMAIL_NEW_HELP"></p></habbo-email-address><habbo-password-new password-new="RegistrationFormController.registration.password" password-new-repeated="RegistrationFormController.registration.passwordRepeated" user-email="{{RegistrationFormController.registration.email}}"></habbo-password-new><habbo-birthdate birthdate="RegistrationFormController.registration.birthdate"></habbo-birthdate><habbo-profile-visibility profile-visibility="RegistrationFormController.registration"></habbo-profile-visibility><habbo-policies policies="RegistrationFormController.registration"></habbo-policies><p class="registration-form__safety" translate="REGISTRATION_SAFETY"></p><div ng-switch on="RegistrationFormController.captchaConfig.provider" class="form__footer" style="width: 100%"><div ng-switch-when="hcaptcha"><div habbo-h-captcha data-on-render="setWidgetId(widgetId)"></div><button ng-disabled="RegistrationFormController.registerInProgress" type="submit" class="form__submit registration-form__button habbo-registration-button" translate="REGISTRATION_BUTTON"></button></div><div ng-switch-default><habbo-captcha ng-if="!RegistrationFormController.hasCaptchaToken" captcha-token="RegistrationFormController.registration.captchaToken"></habbo-captcha><button ng-disabled="RegistrationFormController.registerInProgress || RegistrationFormController.captchaConfig.provider === null" type="submit" class="form__submit registration-form__button habbo-registration-button habbo-registration2-button" translate="REGISTRATION_BUTTON"></button></div></div><p class="registration-form__purchases" translate="REGISTRATION_PURCHASES"></p></form>'),e.put("registration/registration.html",'<habbo-header-small active="register"></habbo-header-small><main class="wrapper wrapper--content"><habbo-registration-form ng-if="RegistrationController.isOpen"></habbo-registration-form><habbo-hotel-closed ng-if="!RegistrationController.isOpen" class="main"></habbo-hotel-closed></main>'),e.put("room/room.html",'<habbo-header-small></habbo-header-small><habbo-room-restricted ng-if="RoomController.room.doorMode != \'open\'" room="RoomController.room"></habbo-room-restricted><habbo-room-open ng-if="RoomController.room.doorMode == \'open\'" room="RoomController.room"></habbo-room-open>'),e.put("settings/settings.html",'<habbo-header-small active="settings"></habbo-header-small><habbo-tabs title-key="SETTINGS_TITLE"><habbo-tab path="/settings/privacy" translation-key="SETTINGS_PRIVACY_TAB"></habbo-tab><habbo-tab path="/settings/security" translation-key="SETTINGS_ACCOUNT_SECURITY_TAB"></habbo-tab><habbo-tab path="/settings/2fa" translation-key="SETTINGS_TWO_FACTOR_AUTH_TAB"></habbo-tab><habbo-tab habbo-require-habbo-session-with-email path="/settings/password" translation-key="SETTINGS_PASSWORD_TAB"></habbo-tab><habbo-tab habbo-require-habbo-session-with-email path="/settings/email" translation-key="SETTINGS_EMAIL_TAB"></habbo-tab><habbo-tab path="/settings/avatars" translation-key="SETTINGS_AVATAR_TAB"></habbo-tab><habbo-tab path="/settings/wallet" translation-key="SETTINGS_WALLET_TAB"></habbo-tab></habbo-tabs><main class="wrapper wrapper--content"><section class="main" ui-view></section><habbo-web-pages key="common/box_learn_how_to_stay_safe" class="aside aside--box aside--push-down"></habbo-web-pages><habbo-web-pages key="common/box_need_help" class="aside aside--box"></habbo-web-pages></main>'),e.put("shop/shop.html",'<habbo-header-small active="shop"></habbo-header-small><habbo-tabs><habbo-tab path="/shop" strict-path="true" translation-key="SHOP_BUY_TAB"></habbo-tab><habbo-tab path="/shop/prepaid" translation-key="SHOP_PREPAID_TAB"></habbo-tab><habbo-tab path="/shop/history" translation-key="SHOP_HISTORY_TAB"></habbo-tab></habbo-tabs><main class="wrapper wrapper--content" ui-view></main><habbo-shop-footer class="wrapper wrapper--content"></habbo-shop-footer>'),e.put("common/accordion/accordion-item-content.html",'<div ng-hide="AccordionItemContentController.height === 0" class="accordion-item-content ng-hide" ng-transclude></div>'),e.put("common/accordion/accordion-item.html",'<li ng-class="{ \'accordion-item--expanded\': AccordionItemController.expanded }" class="accordion-item" ng-transclude></li>'),e.put("common/avatar/avatar.html",'<a ng-href="/profile/{{:: AvatarController.user | encodeURIComponent}}" class="avatar"><habbo-imager user="{{:: AvatarController.user}}" size="{{:: AvatarController.big ? \'largehead\' : \'bighead\'}}" class="avatar__image"></habbo-imager><h6 class="avatar__title" ng-class="{ \'avatar__title--big\': AvatarController.big }">{{:: AvatarController.user}}</h6></a>'),e.put("common/badge/badge.html","<img ng-src=\"{{:: BadgeController.badgeUrl + '/' + BadgeController.code + '.png'}}\" alt=\"{{:: BadgeController.name}}\">"),e.put("common/empty-results/empty-results.html","<span translate=\"{{:: EmptyResultsController.translationKey || 'EMPTY_RESULTS_TEXT' }}\"></span>"),e.put("common/footer/footer.html",'<footer class="wrapper"><div class="footer__media"><p class="footer__media__label" translate="FOLLOW_HABBO"></p><ul itemscope itemtype="http://schema.org/Organization"><link itemprop="url" href="https://www.habbo.fi"><li class="footer__media__item"><a href="https://www.facebook.com/Habbo" class="footer__media__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--facebook"></i></a></li><li class="footer__media__item"><a href="https://twitter.com/HabboFi" class="footer__media__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--twitter"></i></a></li><li class="footer__media__item"><a href="https://www.youtube.com/user/Habbo" class="footer__media__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--youtube"></i></a></li><li class="footer__media__item"><a href="https://www.instagram.com/habboofficial" class="footer__media__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--instagram"></i></a></li><li class="footer__media__item"><a href="https://www.habbo.fi/rss.xml" class="footer__media__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--rss"></i></a></li></ul></div><div class="footer__content"><ul class="footer__nav"><li ng-repeat="link in FooterController.links" class="footer__nav__item"><a ng-href="{{link + \'_LINK\' | translate | zendeskRedirectUrl}}" class="footer__nav__link" target="_blank" rel="noopener noreferrer" translate="{{:: link}}"></a></li><li class="footer__nav__item"><a class="footer__nav__link optanon-toggle-display" target="_blank" rel="noopener noreferrer" translate="FOOTER_COOKIE_PREFERENCES"></li></ul><p class="footer__copyright" translate="FOOTER_COPYRIGHT" translate-values="{ year: FooterController.currentYear }"></p><a href="http://www.sulake.com" target="_blank" rel="noopener noreferrer" class="footer__sulake">Sulake</a></div></footer>'),e.put("common/group-badge/group-badge.html","<img ng-src=\"{{:: GroupBadgeController.imagingUrl + '/badge/' + GroupBadgeController.code + '.gif'}}\" alt=\"{{:: GroupBadgeController.name}}\">"),e.put("common/header/header-large.html",'<div habbo-sticky-header class="header__top sticky-header sticky-header--top"><div class="wrapper"><div class="header__top__content"><h1 class="register-banner__logo">Habbo</h1><h2 class="register-banner__title" translate="HEADER_TITLE"></h2><a href="/registration" habbo-android-download-link habbo-ios-download-link class="register-banner__button" translate="REGISTER_PROMPT_2"></a></div></div></div><div class="header__content" ng-transclude><habbo-register-banner class="habbo-register-banner"></habbo-register-banner></div><habbo-navigation active="{{:: HeaderLargeController.active}}"></habbo-navigation>'),e.put("common/header/header-small.html",'<header class="header__wrapper wrapper"><a href="/" class="header__habbo__logo"><h1 class="header__habbo__name" id="ga-linkid-habbo">Habbo</h1></a><habbo-user-menu habbo-require-session class="header__aside header__aside--user-menu"></habbo-user-menu><div habbo-require-no-session class="header__aside"><button ng-click="HeaderSmallController.openLoginModal()" class="header__login__button"><span class="header__login__icon" translate="LOGIN"></span></button></div></header><habbo-navigation active="{{:: HeaderSmallController.active}}"></habbo-navigation><div class="wrapper" ng-transclude></div>'),e.put("common/hotel-closed/hotel-closed.html",'<div class="hotel-closed"><h1 translate="HOTEL_CLOSED_TITLE"></h1><h3 translate="HOTEL_CLOSED_HOURS"></h3><p translate="HOTEL_CLOSED_DESCRIPTION"></p><ul class="hotel-closed__list"><li><a href="/community/photos" translate="COMMUNITY_PHOTOS_TAB"></a></li><li><a href="/community/category/all" translate="COMMUNITY_NEWS_TAB"></a></li><li><a href="/shop" translate="NAVIGATION_SHOP"></a></li></ul></div>'),e.put("common/imager/imager.html",'<img ng-src="{{:: ImagerController.src}}" ng-srcset="{{:: ImagerController.src + \' 1x\' + (ImagerController.src2x ? (\', \' + ImagerController.src2x + \' 2x\') : \'\')}}" ng-style="{ \'min-width\': ImagerController.dimensions.width }" alt="{{:: ImagerController.name || ImagerController.user }}" width="{{:: ImagerController.dimensions.width }}" height="{{:: ImagerController.dimensions.height }}" class="imager">'),e.put("common/lightbox/lightbox-modal.html",'<button ng-click="$dismiss()" class="lightbox__close modal__close"></button> <img ng-src="{{:: LightboxController.src}}" class="lightbox__image">'),e.put("common/like/like.html",'<div class="like__action"><a ng-click="(LikeController.data | myLike) ? LikeController.unlike() : LikeController.like()"><span translate="{{ (LikeController.data | myLike) ? \'UNLIKE\' : \'LIKE\' }}"></span> <span class="like__count">{{LikeController.data.likes.length}}</span></a></div><div ng-click="LikeController.show = !LikeController.show;" ng-mouseenter="LikeController.mouseenter()" ng-mouseleave="LikeController.show = false;" habbo-false-on-outside-click="LikeController.show" class="like__thumb"><div ng-if="LikeController.data.likes.length > 0" ng-show="LikeController.show" class="like__users ng-hide"><ul><li ng-if="LikeController.data | myLike" class="like__user"><habbo-avatar user="{{:: LikeController.data | myLike}}"></habbo-avatar></li><li ng-repeat="liker in LikeController.data | othersLikes | limitTo: ((LikeController.data | myLike) ? 4 : 5) track by liker" class="like__user"><habbo-avatar user="{{:: liker}}"></habbo-avatar></li></ul><small ng-if="LikeController.data.likes.length > 5" class="like__more">...{{ \'MORE_LIKES\' | translate: { count: LikeController.data.likes.length - 5 } }}</small></div><i class="like__icon icon icon--like"></i></div>'),e.put("common/message-container/message-container.html",'<section class="message-container" ng-transclude></section>'),e.put("common/official-room-avatar/official-room-avatar.html",'<div class="room-official-avatar__wrapper"><div class="room-official-avatar__inner"><div class="room-official-avatar__image"></div><h6 class="room-official-avatar__text" translate="ROOM_OFFICIAL_OWNER"></h6></div></div>'),e.put("common/tabs/tab.html",'<li class="tab"><a ng-href="{{:: TabController.path}}" ng-class="{ \'tab__link--active\': TabController.active }" class="tab__link" translate="{{:: TabController.translationKey}}"></a></li>'),e.put("common/tabs/tabs.html",'<nav ng-hide="TabsController.tabs.length < 2" class="tabs"><h1 ng-if="TabsController.titleKey" class="tabs__title" translate="{{:: TabsController.titleKey}}"></h1><div ng-click="TabsController.open = !TabsController.open" class="tabs__toggle"><div ng-class="{\'tabs__toggle__title--active\': TabsController.open}" class="tabs__toggle__title" translate="{{TabsController.activeTab.translationKey}}"></div></div><ul class="tabs__menu ng-hide" ng-hide="!TabsController.open" ng-transclude></ul></nav>'),e.put("common/text-copy/text-copy-button.html",'<div class="text-copy" ng-click="copyText()"><div ng-show="status === 0" class="text-copy-active" ng-click="copyText()"></div><div ng-show="status === 1" class="text-copy-inactive"></div></div>'),e.put("community/article/article.html",'<section class="wrapper wrapper--content"><habbo-compile data="ArticleController.article" class="main main--fixed"></habbo-compile><habbo-web-pages key="common/box_learn_how_to_stay_safe" class="aside aside--box aside--fixed"></habbo-web-pages></section>'),e.put("community/category/category.html",'<section class="wrapper wrapper--content"><habbo-compile data="CategoryController.category" class="main main--fixed"></habbo-compile><habbo-web-pages key="common/box_learn_how_to_stay_safe" class="aside aside--box aside--fixed"></habbo-web-pages></section>'),e.put("community/fansites/fansites.html",'<section class="wrapper wrapper--content"><article class="main main--fixed static-content"><habbo-compile data="FansitesController.fansites"></habbo-compile></article><habbo-web-pages key="common/box_habbo_way" class="aside aside--box aside--fixed"></habbo-web-pages></section>'),e.put("community/photos/photos.html",'<header class="photos__header"><div class="photos__header__container wrapper"><div class="photos__header__image__wrapper"><div class="photos__header__image"></div></div><div class="photos__header__content"><h1 class="photos__header__title" translate="PHOTOS_TITLE"></h1><p translate="PHOTOS_DESCRIPTION"></p></div></div></header><section class="wrapper wrapper--content"><habbo-columns-channel items="PhotosController.photos"></habbo-columns-channel></section>'),e.put("community/rooms/rooms.html",'<header class="rooms__header"><div class="rooms__header__container wrapper"><div class="rooms__header__image__wrapper"><div class="rooms__header__image"></div></div><div class="rooms__header__content"><h1 class="rooms__header__title" translate="ROOMS_TITLE"></h1><p translate="ROOMS_DESCRIPTION"></p></div></div></header><section class="wrapper wrapper--content rooms-wrapper"><div ng-repeat="room in RoomsController.rooms" class="room-item"><a ng-href="/room/{{:: room.id}}" class="room-item__link"><div class="room-item__thumbnail"><img habbo-remove-on-error class="room-item__thumbnail__image" ng-src="{{room.thumbnailUrl}}"></div></a><a ng-href="/room/{{:: room.id}}" class="room-item__link"><h2 class="room-item__title">{{:: room.name}}</h2></a><p class="room-item__description">{{:: room.description}}</p><div ng-switch="room.publicRoom"><official-room-avatar ng-switch-when="true" class="room-item__owner--official"></official-room-avatar><habbo-avatar ng-switch-when="false" class="room-item__owner--user" user="{{:: room.ownerName}}"></habbo-avatar></div></div></section>'),e.put("email/email-optout-success/email-optout-success.html",'<habbo-header-small></habbo-header-small><main class="wrapper wrapper--content"><section class="main"><habbo-message-container type="check"><h2 translate="EMAIL_OPTOUT_SUCCESS_TITLE"></h2><p translate="EMAIL_OPTOUT_SUCCESS_TEXT"></p></habbo-message-container></section></main>'),e.put("email/email-report-unauthorized/email-report-unauthorized-form.html",'<form ng-submit="EmailReportUnauthorizedFormController.report()" name="emailReportUnauthorizedForm" novalidate><div class="form__footer"><a href="/" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="EmailReportUnauthorizedFormController.reportInProgress" type="submit" class="form__submit" translate="EMAIL_REPORT_UNAUTHORIZED_BUTTON"></button></div></form>'),e.put("email/email-report-unauthorized/email-report-unauthorized.html",'<habbo-header-small></habbo-header-small><main class="wrapper wrapper--content"><section class="main"><habbo-message-container type="exclamation"><h2 translate="EMAIL_REPORT_UNAUTHORIZED_TITLE"></h2><h4 class="email-report-unauthorized-form__email">{{:: EmailReportUnauthorizedController.email}}</h4><p translate="EMAIL_REPORT_UNAUTHORIZED_TEXT"></p><habbo-email-report-unauthorized-form emailaddress="EmailReportUnauthorizedController.email" hash="EmailReportUnauthorizedController.hash"></habbo-email-report-unauthorized-form></habbo-message-container></section></main>'),e.put("home/messaging/messaging.html",'<section><h1 translate="MESSAGING_TITLE"></h1><habbo-discussions items="MessagingController.discussions"></habbo-discussions></section>'),e.put("home/news/news.html",'<habbo-moderation-notification habbo-require-session></habbo-moderation-notification><section><h1 translate="NEWS_TITLE"></h1><div class="main main--fixed"><habbo-compile data="NewsController.promos"></habbo-compile><div class="news__navigation"><a href="/community/category/all" class="news__more" translate="NEWS_MORE"></a></div></div><habbo-web-pages key="common/box_learn_how_to_stay_safe" class="aside aside--box aside--fixed"></habbo-web-pages><habbo-web-pages key="common/box_parents_guide" class="aside aside--box aside--fixed"></habbo-web-pages></section>'),e.put("home/register-banner/register-banner.html",'<div class="register-banner__hotel"></div><div class="register-banner__wrapper"><div class="register-banner__register" ng-init="toggle = false;"><button ng-click="toggle = true;" ng-disabled="toggle" ng-hide="toggle" class="header__top__toggle login-button">{{\'LOGIN\' | translate}}</button><habbo-login-form ng-show="toggle" class="header__login-form ng-hide"></habbo-login-form></div></div>'),e.put("hotel/client/client.html",'<div ngsf-fullscreen habbo-client-close-fullscreen-on-hide ng-class="{ \'client--visible\': ClientController.visible }" class="client"><div class="client__buttons"><button ng-click="ClientController.close()" habbo-client-close-expander class="client__close"><i class="client__close__icon icon icon--habbo"></i><div habbo-client-close-expand class="client__close__expand"><div class="client__close__text" translate="CLIENT_TO_WEB_BUTTON"></div></div></button> <button ngsf-toggle-fullscreen class="client__fullscreen"><i show-if-fullscreen="false" class="client__fullscreen__icon icon icon--fullscreen"></i> <i show-if-fullscreen class="client__fullscreen__icon icon icon--fullscreen-back"></i></button></div><iframe id="hotel-c1-client" ng-if="ClientController.isOpen && !ClientController.shutdown" ng-src="{{ ClientController.client.clienturl }}" habbo-client-communication class="client__frame"></iframe><habbo-client-reload ng-if="ClientController.isOpen && !ClientController.running" reload="ClientController.reload()"></habbo-client-reload><habbo-client-closed ng-if="!ClientController.isOpen"></habbo-client-closed><habbo-interstitial></habbo-interstitial></div>'),e.put("profile/creation/creation-content.html",'<section class="creation-content" ng-style="{ \'max-width\': CreationContentController.creation.contentWidth }"><div class="creation-content__expander"><h2 ng-if="CreationContentController.creation.title" class="creation-content__title">{{:: CreationContentController.creation.title}}</h2><div class="creation-content__view"><a habbo-creation-href="CreationContentController.previous" habbo-navigate-to-on-key="left" ng-class="{ \'creation-content__link--disabled\' : !CreationContentController.previous }" class="creation-content__link"><i class="icon icon--arrow-prev"></i> </a><img ng-src="{{:: CreationContentController.creation.url}}" width="{{:: CreationContentController.creation.contentWidth}}" height="{{:: CreationContentController.creation.contentHeight}}" class="creation-content__creation"> <a habbo-creation-href="CreationContentController.next" habbo-navigate-to-on-key="right" ng-class="{ \'creation-content__link--disabled\' : !CreationContentController.next }" class="creation-content__link"><i class="icon icon--arrow-next"></i></a></div><div class="creation-content__meta"><time ng-if="CreationContentController.creation.time">{{:: CreationContentController.creation.time | date: \'longDate\'}}</time><habbo-report ng-if="CreationContentController.creation.type === \'PHOTO\'" creation="CreationContentController.creation"></habbo-report><habbo-like data="CreationContentController.creation" class="creation-content__like"></habbo-like></div><div class="creation-content__actions"><a href="/community/photos" class="creation-content__channel-link" translate="PHOTOS_TITLE"></a><habbo-photo-delete ng-if="CreationContentController.isDeletable()" creation="CreationContentController.creation" class="creation-content__delete"></habbo-photo-delete></div></div></section>'),e.put("profile/creation/creation.html",'<habbo-header-small class="profile__header"><habbo-profile-header user="{{:: CreationController.creation.creator_name}}"><h1><small class="creation__header-by" translate="BY"></small> <span>{{:: CreationController.creation.creator_name}}</span></h1></habbo-profile-header></habbo-header-small><main class="wrapper wrapper--content"><habbo-creation-content creation="CreationController.creation" previous="CreationController.previous" next="CreationController.next"></habbo-creation-content></main>'),e.put("profile/item-lists/badges.html",'<ul ng-init="limit = 20" infinite-scroll="limit = limit + 10" infinite-scroll-container="\'.modal\'" infinite-scroll-distance="1"><li ng-repeat="badge in BadgeListController.badges | byNameDescriptionOrMotto: BadgeListController.query | limitTo: limit" class="item item--small item--badge"><div class="item__content"><div class="item__icon"><div class="item__icon__aligner"><habbo-badge code="{{:: badge.code}}" name="{{:: badge.name}}"></habbo-badge></div></div><div class="item__text"><h6 class="item__title item__title--multi-line">{{:: badge.name}}</h6><p class="item__description">{{:: badge.description}}</p></div></div></li></ul>'),e.put("profile/item-lists/friends.html",'<ul ng-init="limit = 14" infinite-scroll="limit = limit + 7" infinite-scroll-container="\'.modal\'" infinite-scroll-distance="1"><li ng-repeat="friend in FriendListController.friends | byNameDescriptionOrMotto: FriendListController.query | limitTo: limit" class="item item--friend"><a ng-href="/profile/{{:: friend.name | encodeURIComponent}}" ng-init="wave = false" ng-mouseenter="wave = true" ng-mouseleave="wave = false" class="item__content"><div class="item__icon" ng-switch="wave"><habbo-imager ng-switch-when="false" figure="{{:: friend.figureString}}" name="{{:: friend.name}}" direction="s" action="stand" class="item__icon__friend"></habbo-imager><habbo-imager ng-switch-when="true" figure="{{:: friend.figureString}}" name="{{:: friend.name}}" direction="s" action="wave" class="item__icon__friend"></habbo-imager></div><div class="item__text"><h6 class="item__title item__title--single-line">{{:: friend.name}}</h6><p ng-if="friend.motto" class="item__description">{{:: friend.motto}}</p></div></a></li></ul>'),e.put("profile/item-lists/groups.html",'<ul ng-init="limit = 20" infinite-scroll="limit = limit + 10" infinite-scroll-container="\'.modal\'" infinite-scroll-distance="1"><li ng-repeat="group in GroupListController.groups | byNameDescriptionOrMotto: GroupListController.query | limitTo: limit" class="item item--small item--group"><a habbo-flash-href="{{:: group.roomId ? \'/hotel?room=\' + group.roomId : \'\'}}" class="item__content"><div class="item__icon"><div class="item__icon__aligner"><habbo-group-badge code="{{:: group.badgeCode}}" name="{{:: group.name}}"></habbo-group-badge></div></div><div class="item__text"><h6 class="item__title item__title--multi-line">{{:: group.name}}</h6><p ng-if="group.description" class="item__description">{{:: group.description}}</p></div></a></li></ul>'),e.put("profile/item-lists/rooms.html",'<ul ng-init="limit = 16" infinite-scroll="limit = limit + 8" infinite-scroll-container="\'.modal\'" infinite-scroll-distance="1"><li ng-repeat="room in RoomListController.rooms | byNameDescriptionOrMotto: RoomListController.query | limitTo: limit" class="item item--room"><a ng-href="/room/{{:: room.id}}" class="item__content"><habbo-room-icon class="item__icon" url="{{:: room.thumbnailUrl}}"></habbo-room-icon><div class="item__text"><h6 class="item__title item__title--single-line">{{:: room.name}}</h6><p ng-if="room.description" class="item__description">{{:: room.description}}</p></div></a></li></ul>'),e.put("profile/profile-header/profile-header.html",'<div class="profile-header__avatar"><div ng-if="ProfileHeaderController.profile === \'true\'" class="profile-header__link"><habbo-imager ng-if="!ProfileHeaderController.isCroco(ProfileHeaderController.motto)" figure="{{:: ProfileHeaderController.figure}}" user="{{:: ProfileHeaderController.figure ? \'\' : ProfileHeaderController.user}}" name="{{:: ProfileHeaderController.user}}" class="profile-header__image"></habbo-imager><div ng-if="ProfileHeaderController.isCroco(ProfileHeaderController.motto)" class="profile-header__image profile-header__image--croco"><img src="https://images.habbo.com/habbo-web/america/fi/assets/images/croco.da42ad70.png"></div></div><a ng-if="ProfileHeaderController.profile !== \'true\'" ng-href="/profile/{{:: ProfileHeaderController.user | encodeURIComponent}}" class="profile-header__link"><habbo-imager figure="{{:: ProfileHeaderController.figure}}" user="{{:: ProfileHeaderController.figure ? \'\' : ProfileHeaderController.user}}" name="{{:: ProfileHeaderController.user}}" size="largehead" class="profile-header__image profile-header__image--largehead"></habbo-imager></a></div><div class="profile-header__details"><div ng-if="ProfileHeaderController.profile === \'true\'" ng-transclude></div><a ng-if="ProfileHeaderController.profile !== \'true\'" ng-href="/profile/{{:: ProfileHeaderController.user | encodeURIComponent}}" class="profile-header__details__link" ng-transclude></a></div>'),e.put("profile/profile-modal/profile-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="{{:: \'PROFILE_\' + ProfileModalController.type.toUpperCase() + \'_TITLE\'}}" class="modal__title"></h3><habbo-search query="query"></habbo-search><div class="item-list--stacked" ng-switch="ProfileModalController.type"><habbo-badge-list ng-switch-when="badges" badges="ProfileModalController.items" query="query"></habbo-badge-list><habbo-friend-list ng-switch-when="friends" friends="ProfileModalController.items" query="query"></habbo-friend-list><habbo-room-list ng-switch-when="rooms" rooms="ProfileModalController.items" query="query"></habbo-room-list><habbo-group-list ng-switch-when="groups" groups="ProfileModalController.items" query="query"></habbo-group-list></div><habbo-empty-results ng-if="(ProfileModalController.items | byNameDescriptionOrMotto: query).length === 0" class="profile-modal__empty"></habbo-empty-results>'),e.put("registration/birthdate/birthdate.html",'<fieldset class="form__fieldset"><label for="birthdate-day" class="form__label" translate="FORM_BIRTHDATE_LABEL"></label><p translate="BIRTHDATE_HELP"></p><div class="form__field"><select id="birthdate-day" ng-model="BirthdateController.day" ng-class="{ \'ng-invalid\': (BirthdateController.FormController.birthdate.$invalid && !day|| BirthdateController.FormController.birthdate.$error.remoteDataAge)\n && (!BirthdateController.FormController.birthdate.$pristine || BirthdateController.FormController.$submitted) }" class="form__select birthdate__day"><option translate="BIRTHDATE_DAY"></option><option ng-repeat="day in BirthdateController.days | daysInMonth: BirthdateController.month : BirthdateController.year" ng-value="{{day}}">{{day}}</option></select><select ng-model="BirthdateController.month" ng-class="{ \'ng-invalid\': (BirthdateController.FormController.birthdate.$invalid && !month || BirthdateController.FormController.birthdate.$error.remoteDataAge)\n && (!BirthdateController.FormController.birthdate.$pristine || BirthdateController.FormController.$submitted) }" class="form__select birthdate__month"><option translate="BIRTHDATE_MONTH"></option><option ng-repeat="month in BirthdateController.months" ng-value="{{month.value}}" translate="{{month.translationKey}}"></option></select><select ng-model="BirthdateController.year" ng-class="{ \'ng-invalid\': (BirthdateController.FormController.birthdate.$invalid && !year || BirthdateController.FormController.birthdate.$error.remoteDataAge)\n && (!BirthdateController.FormController.birthdate.$pristine || BirthdateController.FormController.$submitted) }" class="form__select birthdate__year"><option translate="BIRTHDATE_YEAR"></option><option ng-repeat="year in BirthdateController.years" ng-value="{{year}}">{{year}}</option></select><input name="birthdate" ng-model="BirthdateController.birthdate" required type="hidden"><div ng-if="BirthdateController.FormController.birthdate.$invalid && (!BirthdateController.FormController.birthdate.$pristine || BirthdateController.FormController.$submitted)" ng-messages="BirthdateController.FormController.birthdate.$error" class="form__popover form__popover--error"><div ng-message="required">{{ \'ERROR_FIELD_REQUIRED\' | translate }}</div></div></div></fieldset>'), e.put("registration/policies/policies.html",'<fieldset class="form__fieldset"><div class="form__field"><label for="terms-of-service" class="form__label form__label--checkbox"><input id="terms-of-service" name="termsOfServiceAccepted" ng-model="PoliciesController.policies.termsOfServiceAccepted" required type="checkbox" class="form__checkbox"> <span translate="POLICIES_TERMS_OF_SERVICE"></span></label><div ng-if="PoliciesController.FormController.termsOfServiceAccepted.$invalid\n && (!PoliciesController.FormController.termsOfServiceAccepted.$pristine\n || PoliciesController.FormController.$submitted)" ng-messages="PoliciesController.FormController.termsOfServiceAccepted.$error" class="form__popover form__popover--error"><div ng-message="required">{{ \'ERROR_FIELD_REQUIRED\' | translate }}</div></div></div><div class="form__field"><label for="marketing" class="form__label form__label--checkbox"><input id="marketing" ng-model="PoliciesController.policies.marketingAllowed" type="checkbox" class="form__checkbox"> <span translate="POLICIES_MARKETING"></span></label></div></fieldset>'),e.put("registration/profile-visibility/profile-visibility.html",'<fieldset class="form__fieldset form__fieldset--box"><label for="profileVisibilityPublic" class="form__label" translate="SETTINGS_PROFILE_VISIBILITY_TITLE"></label><p translate="PROFILE_VISIBILITY_INFO"></p><div class="form__field"><label for="profileVisibilityPublic" class="form__label form__label--checkbox"><input id="profileVisibilityPublic" type="checkbox" ng-model="ProfileVisibilityController.profileVisibility.profileVisibilityPublic" class="form__checkbox"> <span translate="PROFILE_VISIBILITY_PUBLIC_OPTION"></span></label></div></fieldset>'),e.put("room/room-info/room-info.html",'<ul class="room-info"><li class="room-info__row"><h3 class="room-info__header" translate="ROOM_DESCRIPTION"></h3><span class="room-info__value room-info--description">{{:: RoomInfoController.description}}</span></li><li class="room-info__row"><h3 class="room-info__header" translate="ROOM_TAGS"></h3><span class="room-info__value">{{:: RoomInfoController.tags.join(\', \')}}</span></li></ul>'),e.put("room/room-open/room-open.html",'<main><section class="wrapper wrapper--content"><div class="room__thumbnail"><img habbo-remove-on-error class="room__thumbnail__image" ng-src="{{:: RoomOpenController.room.thumbnailUrl}}"></div><div class="room__content"><h1 class="room__content__title">{{:: RoomOpenController.room.name}}</h1><div class="room__content__left"><div ng-switch="RoomOpenController.room.publicRoom"><official-room-avatar ng-switch-when="true" class="room__owner--official"></official-room-avatar><habbo-avatar ng-switch-when="false" class="room__owner--user" user="{{:: RoomOpenController.room.ownerName}}"></habbo-avatar></div><habbo-room-info description="{{:: RoomOpenController.room.description}}" tags="RoomOpenController.room.tags"></habbo-room-info><div habbo-require-session><button ng-click="RoomOpenController.forward(RoomOpenController.room.id)" class="room__enter-button"><span class="room__enter-button__text" translate="ROOM_ENTER_BUTTON"></span></button></div></div><div class="room__content__right"><div class="room__details"><h3 translate="ROOM_DETAILS"></h3><dl><dt translate="ROOM_RATING"></dt><dd>{{:: RoomOpenController.room.rating}}</dd><dt translate="ROOM_MAX_USERS"></dt><dd>{{:: RoomOpenController.room.maximumVisitors}}</dd></dl></div><div class="room__actions"><a class="room__report" habbo-require-flash ng-href="{{:: RoomOpenController.room.hotelReportLink}}"><span class="room__report__text" translate="ROOM_REPORT_ACTION"></span></a></div></div></div></section><habbo-room-picture url="{{:: RoomOpenController.room.imageUrl}}"></habbo-room-picture></main>'),e.put("room/room-picture/room-picture.html",'<section class="room-picture__wrapper"><img habbo-remove-on-error class="room-picture__image" ng-src="{{:: RoomPictureController.url}}"></section>'),e.put("room/room-restricted/room-restricted.html",'<main class="wrapper wrapper--content room-restricted"><section class="room-restricted__content"><h3 translate="ROOM_RESTRICTED_TITLE"></h3><h4 class="room-restricted__name">{{:: RoomRestrictedController.room.name}}</h4><div class="room-restricted__explanation" translate="ROOM_RESTRICTED_TEXT"></div><div habbo-require-session><button ng-click="RoomRestrictedController.forward(RoomRestrictedController.room.id)" class="room__enter-button"><span class="room__enter-button__text" translate="ROOM_ENTER_BUTTON"></span></button></div></section></main>'),e.put("router/spinner/inline-spinner.html",'<span class="spinner__indicator"></span>'),e.put("router/spinner/spinner.html",'<div class="spinner"><h1 class="spinner__logo">Habbo</h1><div class="spinner__indicator"></div></div>'),e.put("security/login/login-form.html",'<div class="social-login"><div class="login-form__login-text" style="margin-top: 10px">{{ \'LOGIN_HEADER_TEXT\' | translate }}</div><div class="login-form__social"><habbo-facebook-connect on-login="LoginController.onLogin()" type="large" translation-key="FACEBOOK"></habbo-facebook-connect><habbo-facebook-connect on-login="LoginController.onLogin()" type="small"></habbo-facebook-connect><habbo-google-connect on-login="LoginController.onLogin()" type="large" translation-key="GOOGLE"></habbo-google-connect><habbo-google-connect on-login="LoginController.onLogin()" type="small"></habbo-google-connect><habbo-apple-connect on-login="LoginController.onLogin()" type="large" translation-key="APPLE_SIGN_IN"></habbo-apple-connect><habbo-apple-connect on-login="LoginController.onLogin()" type="small"></habbo-apple-connect><div class="login-texts" id="more-login"><div class="login-form__login-text" class="more-login"><habbo-rpx-login></habbo-rpx-login></div></div></div></div><div class="login-form__email-login"><div class="login-form__login-text" style="margin-top: 10px">{{ \'LOGIN_USE_EMAIL_PASSWORD\' | translate }}</div><form id="habboLoginForm" ng-submit="LoginController.submit()" name="loginForm" novalidate habbo-shake class="login-form__form"><div style="width: 100%"><fieldset class="form__fieldset login-form__fieldset"><div class="form__field"><input name="email" type="email" ng-model="LoginController.email" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required habbo-email habbo-remote-data="\'credentials\'" autofocus placeholder="{{\'FORM_EMAIL_LABEL\' | translate}}" class="form__input login-form__input"></div></fieldset><fieldset class="form__fieldset login-form__fieldset"><div class="form__field"><input name="password" type="password" ng-model="LoginController.password" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required habbo-remote-data="\'credentials\'" placeholder="{{\'FORM_PASSWORD_LABEL\' | translate}}" class="form__input login-form__input"></div></fieldset></div><div ng-switch on="LoginController.captchaConfig.provider" style="width: 100%"><div ng-switch-when="hcaptcha"><div habbo-h-captcha data-on-render="setWidgetId(widgetId)"></div><button ng-disabled="LoginController.loginInProgress" name="loginButton" type="submit" class="login-form__button habbo-login-button" translate="LOGIN_BUTTON"></button></div><div ng-switch-default><button ng-disabled="LoginController.loginInProgress || LoginController.captchaConfig.provider === null" name="loginButton" type="submit" class="login-form__button habbo-login-button habbo-login2-button" translate="LOGIN_BUTTON"></button></div></div></form><div class="login-texts" id="forgot-password"><habbo-claim-password class="login-form__login-text"></habbo-claim-password></div><div class="login-form__register"><small><a href="/registration" habbo-android-download-link habbo-ios-download-link translate="LOGIN_REGISTER"></a></small></div></div>'),e.put("security/login/login-modal.html",'<div class="login"><button ng-click="$dismiss()" class="modal__close"></button><h3 translate="LOGIN" class="modal__title"></h3><div class="modal__content"><habbo-login-form on-login="$close()"></habbo-login-form></div></div>'),e.put("security/safety-lock/safety-answering-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="SAFETY_LOCK_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-safety-answering-form data="SafetyAnsweringController.data" questions="SafetyAnsweringController.questions" target-action="SafetyAnsweringController.targetAction(SafetyAnsweringController.data)" on-success="$close()" on-cancel="$dismiss()"></habbo-safety-answering-form></div>'),e.put("security/safety-lock/safety-lock-form.html",'<form ng-submit="unlock()" name="safetyLockForm" novalidate class="form"><p translate="SAFETY_LOCK_ANSWER"></p><div ng-if="safetyLockForm.$error.remoteDataAnswer" class="form__message form__message--error" translate="ERROR_SAFETY_LOCK_ANSWER"></div><fieldset class="form__fieldset"><label for="safety-lock-answer1" class="form__label" translate="{{questions[0].questionKey}}"></label><div class="form__field"><input id="safety-lock-answer1" name="answer1" type="password" ng-model="answers.answer1" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required habbo-remote-data="\'answer\'" habbo-password-toggle-mask autocomplete="off" class="form__input"><div ng-if="safetyLockForm.answer1.$error.required && (!safetyLockForm.answer1.$pristine || safetyLockForm.$submitted)" class="form__popover form__popover--error">{{ \'ERROR_FIELD_REQUIRED\' | translate }}</div></div></fieldset><fieldset class="form__fieldset"><label for="safety-lock-answer2" class="form__label" translate="{{questions[1].questionKey}}"></label><div class="form__field"><input id="safety-lock-answer2" name="answer2" type="password" ng-model="answers.answer2" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required habbo-remote-data="\'answer\'" habbo-password-toggle-mask autocomplete="off" class="form__input"><div ng-if="safetyLockForm.answer1.$error.required && (!safetyLockForm.answer2.$pristine || safetyLockForm.$submitted)" class="form__popover form__popover--error">{{ \'ERROR_FIELD_REQUIRED\' | translate }}</div></div></fieldset><div ng-if="isTrustedLocationEnabled"><fieldset class="form__fieldset form__fieldset--box"><div class="form__field"><label for="trust-once" class="form__label form__label--radiobutton"><input id="trust-once" ng-model="answers.trust" ng-value="false" type="radio" class="form__radiobutton"> <span translate="SAFETY_LOCK_SET_TRUSTED_ONCE"></span></label></div><div class="form__field"><label for="trust-save" class="form__lable form__label--radiobutton"><input id="trust-save" ng-model="answers.trust" ng-value="true" type="radio" class="form__radiobutton"> <span translate="SAFETY_LOCK_SET_TRUSTED_SAVE"></span></label></div></fieldset></div><div class="form__footer"><a ng-click="onCancel()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="unlockingInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_UNLOCK"></button></div></form>'),e.put("security/safety-lock/safety-lock-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="SAFETY_LOCK_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-safety-lock-form questions="SafetyLockController.questions" on-unlock="$close()" on-cancel="$dismiss()"></habbo-safety-lock-form></div>'),e.put("settings/account-security/account-security-edit.html",'<habbo-message-container ng-if="AccountSecurityEditController.accountSecurityStatus === \'enabled\'" type="check"><h3 translate="ACCOUNT_SECURITY_STATUS_ENABLED_TITLE"></h3><div class="account-security__status"><button ng-click="AccountSecurityEditController.openEditModal()" class="account-security__edit" translate="ACCOUNT_SECURITY_EDIT_BUTTON"></button> <button ng-click="AccountSecurityEditController.openDisableModal()" class="account-security__disable" translate="ACCOUNT_SECURITY_DISABLE"></button></div></habbo-message-container><habbo-message-container ng-if="AccountSecurityEditController.accountSecurityStatus === \'disabled\'" type="exclamation"><h3 translate="ACCOUNT_SECURITY_STATUS_DISABLED_TITLE"></h3><button ng-click="AccountSecurityEditController.openEditModal()" class="account-security__enable" translate="ACCOUNT_SECURITY_ENABLE_BUTTON"></button></habbo-message-container><habbo-message-container ng-if="AccountSecurityEditController.accountSecurityStatus === \'identity_verification_required\'" type="exclamation"><h3 translate="ACCOUNT_SECURITY_STATUS_VERIFICATION_REQUIRED_TITLE"></h3><a ng-href="/settings/email" translate="ACCOUNT_SECURITY_STATUS_VERIFICATION_REQUIRED_LINK_TEXT"></a></habbo-message-container>'),e.put("settings/account-security/account-security.html",'<h2 translate="ACCOUNT_SECURITY_TITLE"></h2><p translate="ACCOUNT_SECURITY_DESCRIPTION"></p><habbo-account-security-edit account-security-status="AccountSecurityController.accountSecurityStatus"></habbo-account-security-edit><div ng-if="AccountSecurityController.accountSecurityStatus === \'enabled\'" class="account-security__trusted-locations"><h2 translate="ACCOUNT_SECURITY_TRUSTED_LOCATIONS_TITLE"></h2><p translate="ACCOUNT_SECURITY_TRUSTED_LOCATIONS_DESCRIPTION"></p><habbo-trusted-locations-reset></habbo-trusted-locations-reset></div>'),e.put("settings/account-security/trusted-locations-reset.html",'<button ng-click="TrustedLocationsResetController.reset()" ng-disabled="TrustedLocationsResetController.inProgress" class="account-security__reset" translate="ACCOUNT_SECURITY_RESET_TRUSTED_LOGINS_BUTTON"></button>'),e.put("settings/avatar-selection/avatar-selection.html",'<h2 translate="AVATAR_SELECTION_TITLE"></h2><habbo-avatar-create require-non-staff-account-session avatars="AvatarSelectionController.avatars"></habbo-avatar-create><habbo-avatar-search avatars="AvatarSelectionController.avatars"></habbo-avatar-search>'),e.put("settings/email-change/email-change-form.html",'<form ng-submit="EmailChangeFormController.update()" name="emailChangeForm" autocomplete="off" novalidate class="form form--left"><habbo-password-current password-current="EmailChangeFormController.emailChangeData.currentPassword"></habbo-password-current><habbo-email-address email-address="EmailChangeFormController.emailChangeData.newEmail" type="box"><label for="email-address" class="form__label" translate="FORM_NEW_EMAIL_LABEL"></label><p translate="EMAIL_NEW_HELP"></p></habbo-email-address><habbo-captcha captcha-token="EmailChangeFormController.emailChangeData.captchaToken"></habbo-captcha><div class="form__footer"><button ng-disabled="EmailChangeFormController.updateInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_CHANGE"></button></div></form>'),e.put("settings/email-change/email-change.html",'<habbo-activation-status></habbo-activation-status><h2 translate="EMAIL_CHANGE_TITLE"></h2><habbo-email-change-form></habbo-email-change-form>'),e.put("settings/password-change/password-change-form.html",'<form ng-submit="PasswordChangeFormController.update()" name="changePasswordForm" autocomplete="off" novalidate class="form form--left"><habbo-password-current password-current="PasswordChangeFormController.passwords.currentPassword"></habbo-password-current><habbo-password-new is-new="true" password-new="PasswordChangeFormController.passwords.password" password-new-repeated="PasswordChangeFormController.passwords.passwordRepeated" user-name="{{:: PasswordChangeFormController.user.name}}" user-email="{{:: PasswordChangeFormController.user.email}}"></habbo-password-new><habbo-captcha captcha-token="PasswordChangeFormController.passwords.captchaToken"></habbo-captcha><div class="form__footer"><button ng-disabled="PasswordChangeFormController.updateInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_CHANGE"></button></div></form>'),e.put("settings/password-change/password-change.html",'<h2 translate="PASSWORD_CHANGE_TITLE"></h2><habbo-password-change-form></habbo-password-change-form>'),e.put("settings/privacy-settings/privacy-settings-form.html",'<form ng-submit="$ctrl.save()" name="privacySettingsForm" novalidate class="form form--left"><fieldset class="form__fieldset"><h4 translate="SETTINGS_PROFILE_VISIBILITY_TITLE"></h4><p translate="SETTINGS_PROFILE_VISIBILITY_DESCRIPTION"></p><div class="form__field"><label class="form__label form__label--radiobutton"><input name="profileVisible" ng-model="$ctrl.privacySettings.profileVisible" ng-value="true" type="radio" class="form__radiobutton"> <span translate="SETTINGS_EVERYONE_LABEL"></span></label></div><div class="form__field"><label class="form__label form__label--radiobutton"><input name="profileVisible" ng-model="$ctrl.privacySettings.profileVisible" ng-value="false" type="radio" class="form__radiobutton"> <span translate="SETTINGS_ME_LABEL"></span></label></div></fieldset><fieldset class="form__fieldset form__fieldset--box"><h4 translate="SETTINGS_ONLINE_STATUS_TITLE"></h4><p translate="SETTINGS_ONLINE_STATUS_DESCRIPTION"></p><div class="form__field"><label class="form__label form__label--radiobutton"><input name="onlineStatusVisible" ng-model="$ctrl.privacySettings.onlineStatusVisible" ng-value="true" type="radio" class="form__radiobutton"> <span translate="SETTINGS_EVERYONE_LABEL"></span></label></div><div class="form__field"><label class="form__label form__label--radiobutton"><input name="onlineStatusVisible" ng-model="$ctrl.privacySettings.onlineStatusVisible" ng-value="false" type="radio" class="form__radiobutton"> <span translate="SETTINGS_ME_LABEL"></span></label></div></fieldset><fieldset class="form__fieldset"><h4 translate="SETTINGS_FRIENDS_CAN_FOLLOW_TITLE"></h4><div class="form__field"><label for="friend-can-follow" class="form__label form__label--checkbox"><input id="friend-can-follow" name="friendCanFollow" ng-model="$ctrl.privacySettings.friendCanFollow" type="checkbox" class="form__checkbox"> <span translate="SETTINGS_ENABLE_FRIEND_CAN_FOLLOW_LABEL"></span></label></div></fieldset><fieldset class="form__fieldset form__fieldset--box"><h4 translate="SETTINGS_FRIEND_REQUESTS_ENABLED_TITLE"></h4><div class="form__field"><label for="friend-request-enable" class="form__label form__label--checkbox"><input id="friend-request-enable" name="friendRequestEnabled" ng-model="$ctrl.privacySettings.friendRequestEnabled" type="checkbox" class="form__checkbox"> <span translate="SETTINGS_ENABLE_FRIEND_REQUESTS_LABEL"></span></label></div></fieldset><fieldset class="form__fieldset"><h4 translate="SETTINGS_EMAIL_NOTIFICATIONS_TITLE"></h4><div class="form__field"><label for="email-newsletter-enable" class="form__label form__label--checkbox"><input id="email-newsletter-enable" name="emailNewsletterEnabled" ng-model="$ctrl.privacySettings.emailNewsletterEnabled" type="checkbox" class="form__checkbox"> <span translate="SETTINGS_ENABLE_NEWSLETTER_LABEL"></span></label></div><div class="form__field"><span translate="SETTINGS_EMAIL_NOTIFICATIONS_SUBTITLE"></span><label class="form__label form__label--checkbox"><input name="emailFriendRequestNotificationEnabled" ng-model="$ctrl.privacySettings.emailFriendRequestNotificationEnabled" type="checkbox" class="form__checkbox"> <span translate="SETTINGS_ENABLE_NOTIFICATION_FRIEND_REQUEST_LABEL"></span></label><label class="form__label form__label--checkbox"><input name="emailGiftNotificationEnabled" ng-model="$ctrl.privacySettings.emailGiftNotificationEnabled" type="checkbox" class="form__checkbox"> <span translate="SETTINGS_ENABLE_NOTIFICATION_GIFT_LABEL"></span></label><label class="form__label form__label--checkbox"><input name="emailRoomMessageNotificationEnabled" ng-model="$ctrl.privacySettings.emailRoomMessageNotificationEnabled" type="checkbox" class="form__checkbox"> <span translate="SETTINGS_ENABLE_NOTIFICATION_ROOM_LABEL"></span></label><label class="form__label form__label--checkbox"><input name="emailGroupNotificationEnabled" ng-model="$ctrl.privacySettings.emailGroupNotificationEnabled" type="checkbox" class="form__checkbox"> <span translate="SETTINGS_ENABLE_NOTIFICATION_GROUP_LABEL"></span></label></div></fieldset><fieldset class="form__fieldset gdpr-fieldset form__fieldset--box"><h4 class="gdpr-fieldset__title" translate="SETTINGS_GDPR_TITLE"></h4><div ng-if="!$ctrl.isGdprSubmitted"><div class="form__field"><label class="form__label form__label--radiobutton"><input name="gdprAccessRequest" ng-model="$ctrl.privacySettings.gdprRequestType" ng-value="\'access\'" type="radio" class="form__radiobutton"> <span translate="SETTINGS_GDPR_ACCESS_REQUEST_LABEL"></span></label></div><div class="form__field"><label class="form__label form__label--radiobutton"><input name="gdprPortabilityRequest" ng-model="$ctrl.privacySettings.gdprRequestType" ng-value="\'portability\'" type="radio" class="form__radiobutton"> <span translate="SETTINGS_GDPR_PORTABILITY_REQUEST_LABEL"></span></label></div><div class="form__field"><label class="form__label form__label--radiobutton"><input name="gdprErasureRequest" ng-model="$ctrl.privacySettings.gdprRequestType" ng-value="\'erasure\'" type="radio" class="form__radiobutton"> <span translate="SETTINGS_GDPR_ERASURE_REQUEST_LABEL"></span></label></div></div><div ng-if="$ctrl.isGdprSubmitted && !$ctrl.privacySettings.gdprDataReady" ng-switch="$ctrl.privacySettings.gdprRequestType"><p ng-switch-when="access" class="gdprRequestPendingDescription" translate="SETTINGS_GDPR_ACCESS_REQUEST_IN_PENDING_DESCRIPTION"></p><p ng-switch-when="portability" class="gdprRequestPendingDescription" translate="SETTINGS_GDPR_PORTABILITY_REQUEST_IN_PENDING_DESCRIPTION"></p><p ng-switch-when="erasure" class="gdprRequestPendingDescription" translate="SETTINGS_GDPR_ERASURE_REQUEST_IN_PENDING_DESCRIPTION"></p><label class="form__label form__label--checkbox"><input name="gdprRequestCancellationChkBox" ng-model="$ctrl.privacySettings.gdprRequestCancelled" type="checkbox" class="form__checkbox"> <span translate="SETTINGS_GDPR_REQUEST_CANCELLATION_LABEL"></span></label></div><div ng-if="$ctrl.isGdprSubmitted && $ctrl.privacySettings.gdprDataReady && !$ctrl.gdprDownloadUrl"><a class="gdprRequestReadyLink" ng-click="$ctrl.viewGdprData()" translate="SETTINGS_VIEW_GDPR_DATA" href="#"></a></div><div ng-if="$ctrl.isGdprSubmitted && $ctrl.gdprDownloadUrl"><p class="gdprRequestReadyDescription" translate="SETTINGS_GDPR_REQUEST_READY_DESCRIPTION" translate-values="{link: $ctrl.gdprDownloadUrl}"></p></div></fieldset><div class="form__footer"><button ng-disabled="$ctrl.sendInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_SAVE"></button></div></form>'),e.put("settings/privacy-settings/privacy-settings.html",'<h2 translate="PRIVACY_SETTINGS_TITLE"></h2><habbo-privacy-settings-form privacy-settings="PrivacySettingsController.privacySettings"></habbo-privacy-settings-form>'),e.put("settings/two-factor-auth/two-factor-auth-edit.html",'<h3 translate="TWO_FACTOR_AUTHENTICATION_TITLE"></h3><p translate="TWO_FACTOR_AUTHENTICATION_DESCRIPTION"></p><habbo-message-container ng-if="!TwoFactorAuthEditController.twoFactorAuthStatus.twoFactorRequired && !TwoFactorAuthEditController.twoFactorAuthStatus.disabled" type="2fa-off"><h3 translate="TWO_FACTOR_AUTHENTICATION_OFF"></h3><p translate="TWO_FACTOR_AUTHENTICATION_METHODS"></p><div class="two-factor-auth__status"><button class="two-factor-auth__edit" ng-click="TwoFactorAuthEditController.openRegisterAuthenticator()" translate="TWO_FACTOR_AUTHENTICATION_AUTHENTICATOR_APP"></button></div><div class="two-factor-auth__status"><button class="two-factor-auth__edit" ng-click="TwoFactorAuthEditController.openRegisterEmail()" translate="TWO_FACTOR_AUTHENTICATION_EMAIL"></button></div></habbo-message-container><habbo-message-container ng-if="TwoFactorAuthEditController.twoFactorAuthStatus.twoFactorRequired || TwoFactorAuthEditController.twoFactorAuthStatus.disabled" type="2fa-on"><h3 ng-if="!TwoFactorAuthEditController.twoFactorAuthStatus.disabled" translate="TWO_FACTOR_AUTHENTICATION_ON"></h3><h3 ng-if="TwoFactorAuthEditController.twoFactorAuthStatus.disabled" translate="TWO_FACTOR_AUTHENTICATION_DISABLED"></h3><p ng-if="!TwoFactorAuthEditController.twoFactorAuthStatus.disabled" translate="TWO_FACTOR_AUTHENTICATION_ENABLED_DESCRIPTION"></p><p ng-if="TwoFactorAuthEditController.twoFactorAuthStatus.disabled" translate="TWO_FACTOR_AUTHENTICATION_DISABLED_DESCRIPTION"></p><div class="account-security__status"><button class="two-factor-auth__disable-button" ng-if="!TwoFactorAuthEditController.twoFactorAuthStatus.disabled" ng-click="TwoFactorAuthEditController.openDisable()" translate="TWO_FACTOR_AUTHENTICATION_DISABLE"></button></div><p translate="TWO_FACTOR_AUTHENTICATION_TRUSTED_LOCATIONS"></p><div class="two-factor-auth__status"><habbo-trusted-locations-reset></habbo-trusted-locations-reset></div></habbo-message-container>'),e.put("settings/two-factor-auth/two-factor-auth.html","<habbo-two-factor-auth-edit></habbo-two-factor-auth-edit>"),e.put("settings/wallet-settings/habbo-spinner.html","<div class=\"spinner-anim\" ng-class=\"{ 'spinner-anim-sm': size === 'sm', 'spinner-anim-lg': size == 'lg' }\"><div></div></div>"),e.put("settings/wallet-settings/wallet-settings-form.html",'<habbo-wallet-settings-terms><div ng-repeat="wallet in vm.wallets" class="wallet-setting"><div class="wallet-setting-begin"><div ng-class="{false: \'wallet-setting-name-mm\', true: \'wallet-setting-name-sd\' }[wallet.stardustWallet]">{{wallet.publicAddress | ellipsis:8}}</div><habbo-text-copy ng-if="wallet.stardustWallet" text-to-copy="wallet.publicAddress" status="0"></habbo-text-copy></div><div class="wallet-setting-end"><div class="wallet-setting-end-texts"><habbo-nft-perk has-nft="wallet.hasNFT"></habbo-nft-perk></div><button ng-if="!wallet.stardustWallet" ng-click="vm.disconnect(wallet.publicAddress)" translate="WALLET_SETTINGS_DISCONNECT" class="wallet-setting-disconnect" ng-disabled="vm.isButtonDisabled()"></button></div></div><div ng-if="vm.showRegistration()" class="wallet-setting wallet-setting-add"><div class="wallet-setting-add-icon"></div><div class="wallet-setting-end"><habbo-spinner size="sm" ng-show="vm.registering"></habbo-spinner><button ng-click="vm.register()" translate="WALLET_SETTINGS_CONNECT" class="wallet-setting-connect" ng-disabled="vm.isButtonDisabled()"></button></div></div><p ng-if="!vm.showRegistration()" class="wallet-setting-not-installed" translate="WALLET_SETTINGS_NOT_INSTALLED"></p></habbo-wallet-settings-terms>'),e.put("settings/wallet-settings/wallet-settings-perk.html",'<div ng-show="hasPerk" class="wallet-setting-perk-active" translate="WALLET_SETTINGS_PERKS_ACTIVE"></div><div ng-show="!hasPerk" class="wallet-setting-perk-inactive" translate="WALLET_SETTINGS_PERKS_INACTIVE"></div>'),e.put("settings/wallet-settings/wallet-settings-terms.html",'<div class="wallet-setting-terms" ng-switch on="approved"><div ng-switch-when="yes"><ng-transclude></ng-transclude></div><div ng-switch-when="no"><div translate="WALLET_SETTINGS_TERMS_AND_CONDITIONS" class="wallet-setting-terms-text"></div><div class="wallet-setting-terms-buttons"><button class="wallet-setting-terms-button" translate="WALLET_SETTINGS_ACCEPT_TERMS" ng-click="approve()"></button></div></div><habbo-spinner ng-switch-default></habbo-spinner></div>'),e.put("settings/wallet-settings/wallet-settings.html",'<h2 translate="WALLET_SETTINGS_TITLE"></h2><p translate="WALLET_SETTINGS_DESCRIPTION"></p><wallet-registration-form wallets="WalletsController.wallets"></wallet-registration-form><h2 translate="AVATAR_PERK_SELECTION_TITLE"></h2><habbo-avatar-perk-search avatars="WalletsController.avatars"></habbo-avatar-perk-search>'),e.put("shop/claim-offer/claim-offer.html",'<button type="button" ng-click="ClaimOfferController.claimOffer();" translate="SHOP_CLAIM_BUTTON" class="claim__button form__submit form__submit--inline ng-scope"></button>'),e.put("shop/credit-card-form/credit-card-form.html",'<form ng-submit="CreditCardController.markActiveAndSubmit({ data: CreditCardController.card })" name="creditCardForm" novalidate class="form credit-card-form"><p translate="SHOP_CREDIT_CARD_INSTRUCTION"></p><fieldset class="form__fieldset form__fieldset--inline credit-card-form__input-section"><div class="form__field"><label for="card-number" class="form__label" translate="SHOP_CREDIT_CARD_NUMBER"></label><input id="card-number" name="number" ng-model="CreditCardController.card.number" class="form__input" ng-required="true" cc-number cc-type="cardType" cc-format="true"><div ng-if="creditCardForm.number.$invalid && !creditCardForm.number.$pristine && creditCardForm.number.$touched" class="form__popover form__popover--error form__popover--inline" ng-required="true"><p translate="SHOP_CREDIT_CARD_INVALID_NUMBER"></p></div></div><div class="credit-card-form__expiry-cvc-row form__fieldset"><div class="form__field credit-card-form__expiry-field"><label class="form__label" translate="SHOP_CREDIT_CARD_EXPIRY_DATE"></label><div cc-exp class="credit-card-form__expiry"><input name="month" ng-model="CreditCardController.card.expMonth" cc-exp-month ng-required="true" class="form__input credit-card-form__expiry-input" placeholder="{{\'SHOP_CREDIT_CARD_EXPIRY_HINT_MM\' | translate}}"> <span class="credit-card-form__expiry-slash">/</span> <input name="year" ng-model="CreditCardController.card.expYear" cc-exp-year ng-required="true" class="form__input credit-card-form__expiry-input" placeholder="{{\'SHOP_CREDIT_CARD_EXPIRY_HINT_YY\' | translate}}"></div><div ng-if="(creditCardForm.month.$invalid && !creditCardForm.month.$pristine && creditCardForm.month.$touched)\n || (creditCardForm.year.$invalid && !creditCardForm.year.$pristine && creditCardForm.year.$touched)\n || (creditCardForm.$error.ccExp && !(creditCardForm.month.$pristine || creditCardForm.year.$pristine) && creditCardForm.month.$touched && creditCardForm.year.$touched)" class="form__popover form__popover--error form__popover--inline"><p translate="SHOP_CREDIT_CARD_INVALID_DATE"></p></div></div><div class="form__field credit-card-form__cvc-field"><label class="form__label" translate="SHOP_CREDIT_CARD_CVC"></label><input name="cvc" ng-required="true" ng-model="CreditCardController.card.cvc" class="form__input credit-card-form__cvc-input" cc-cvc> <img src="https://images.habbo.com/habbo-web/america/fi/assets/images/cc_cvc_instruction.4b85e266.png" class="credit-card-form__cvc-icon"><div ng-if="creditCardForm.cvc.$invalid && !creditCardForm.cvc.$pristine && creditCardForm.cvc.$touched" class="form__popover form__popover--error form__popover--inline"><p translate="SHOP_CREDIT_CARD_INVALID_CVC"></p></div></div></div><div class="form__field"><label class="form__label" translate="SHOP_CREDIT_CARD_NAME"></label><input name="name" ng-model="CreditCardController.card.name" class="form__input" ng-required="true"></div><h3 translate="SHOP_SMALLPRINT_TITLE"></h3><p class="payment-steps__legal" translate="SHOP_CREDIT_CARD_SMALLPRINT"></p></fieldset><button ng-disabled="CreditCardController.paymentInProgress || creditCardForm.$invalid" type="submit" translate="SHOP_PAYMENT_BUTTON" class="payment-methods__button payment-button"></button></form>'),e.put("shop/credit-icon/credit-icon.html","<div ng-style=\"{ 'background-image': 'url(' + CreditIconController.image + ')' }\" ng-class=\"[{ 'credit-icon--double': CreditIconController.isDouble }]\" class=\"credit-icon\"></div>"),e.put("shop/currency-title/currency-title.html",'<span ng-if="CurrencyTitleController.isDouble" translate="DOUBLE_CREDITS_PREFIX" class="credit-title__prefix"></span> <span translate="{{CurrencyTitleController.title}}" translate-values="{ value: CurrencyTitleController.amount }"></span>'),e.put("shop/prepaid/prepaid.html",'<header class="shop__header"><h1 translate="SHOP_PREPAID_TITLE" class="shop__header__title"></h1><habbo-shop-countries ng-if="PrepaidController.countries.length > 1" country="PrepaidController.country" countries="PrepaidController.countries" class="shop__header__country"></habbo-shop-countries></header><section><article class="main static-content"><habbo-compile data="PrepaidController.page"></habbo-compile></article><habbo-purse habbo-require-session class="aside aside--box"></habbo-purse><aside habbo-require-session class="aside aside--box"><h3 translate="SHOP_REDEEM_TITLE"></h3><habbo-voucher-redeem></habbo-voucher-redeem></aside><habbo-web-pages key="common/box_account_issues" class="aside aside--box"></habbo-web-pages></section>'), e.put("shop/product-icon/product-icon.html",'<div ng-style="{ \'background-image\': ProductIconController.isDaily ? \'linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(\' + ProductIconController.image + \')\' : \'url(\' + ProductIconController.image + \')\' }" class="product-icon"><div ng-if="ProductIconController.isDaily === \'true\'" ng-class="{ \'inventory-thumbnail__start-price\': ProductIconController.currencyPositionStart, \'inventory-thumbnail__free-tag\' : ProductIconController.isZero}" class="inventory-thumbnail__pricetag"><p ng-if="!ProductIconController.isZero" class="inventory-thumbnail__price" ng-class="{\'condensed\': (ProductIconController.amount.length > 5)}">{{:: ProductIconController.amount}}</p><p ng-if="!ProductIconController.isZero" class="inventory-thumbnail__currency">{{:: ProductIconController.currency}}</p><p ng-if="ProductIconController.isZero" class="inventory-thumbnail__free" translate="FREE"></p></div><img ng-if="ProductIconController.isDaily === \'true\'" src="https://images.habbo.com/habbo-web/america/fi/assets/images/shop/chain_lock.1eb0eac0.png" class="inventory-thumbnail__lock-icon"></div>'),e.put("shop/purse/purse.html",'<aside><h3 translate="SHOP_PURSE_TITLE"></h3><div class="purse"><div class="purse__columns"><div class="purse__column"><div translate="SHOP_PURSE_CREDITS" translate-values="{ creditBalance: PurseController.purse.creditBalance }" class="purse__item purse__item--credits"></div><div translate="SHOP_PURSE_DIAMONDS" translate-values="{ diamondBalance: PurseController.purse.diamondBalance }" class="purse__item purse__item--diamonds"></div><div translate="SHOP_PURSE_SILVER" translate-values="{ silverBalance: PurseController.purse.silverBalance }" class="purse__item purse__item--silver"></div></div><div class="purse__column"><div class="purse__item purse__item--habbo-club"><span ng-if="PurseController.purse.habboClubDays !== 0" translate="SHOP_PURSE_HC_DAYS" translate-values="{ habboClubDays: PurseController.purse.habboClubDays }"></span> <span ng-if="PurseController.purse.habboClubDays === 0" translate="SHOP_PURSE_NO_HC"></span></div><div class="purse__item purse__item--builders-club"><span ng-if="PurseController.purse.buildersClubDays !== 0" translate="SHOP_PURSE_BC_DAYS" translate-values="{ buildersClubDays: PurseController.purse.buildersClubDays }"></span> <span ng-if="PurseController.purse.buildersClubDays === 0" translate="SHOP_PURSE_NO_BC"></span></div></div></div></div><div class="purse__footer"><a href="/hotel?link=habboUI/open/hccenter" class="purse__hc-center" translate="SHOP_PURSE_HC_LINK"></a></div></aside>'),e.put("shop/shop-countries/shop-countries.html",'<label for="shop-country" class="form__label form__label--inline"><small translate="SHOP_COUNTRY_LABEL" translate-values="{ countryName: ShopCountriesController.country.name }"></small></label><select id="shop-country" ng-model="ShopCountriesController.country" ng-options="country.name for country in ShopCountriesController.countries track by country.countryCode" class="form__select form__select--inline"></select>'),e.put("shop/shop-footer/shop-footer.html",'<footer class="shop-footer"><section class="main shop-footer__main"><h3 translate="SHOP_NOTICE_TITLE" class="shop-footer__title"></h3><p translate="SHOP_NOTICE_CONTENTS" class="shop-footer__text"></p></section><aside class="aside shop-footer__aside"><h4 translate="SHOP_NOTICE_PROVIDER_TITLE" class="shop-footer__title--aside"></h4><p translate="SHOP_NOTICE_PROVIDER" class="shop-footer__text"></p><a ng-href="{{\'FOOTER_SUPPORT_LINK\' | translate | zendeskRedirectUrl}}" target="_blank" rel="noopener noreferrer" translate="FOOTER_SUPPORT" class="shop-footer__link"></a></aside></footer>'),e.put("shop/store/store.html",'<header class="shop__header"><h1 translate="SHOP_TITLE" class="shop__header__title"></h1><habbo-shop-countries ng-if="StoreController.countries.length > 1" country="StoreController.inventory.country" countries="StoreController.countries" class="shop__header__country"></habbo-shop-countries></header><section><div class="main"><habbo-category-filter ng-show="StoreController.inventory.paymentCategories.length > 0" payment-categories="StoreController.inventory.paymentCategories" selected-category="StoreController.selectedCategory"></habbo-category-filter><habbo-targeted-offer offer="StoreController.offer" ng-if="StoreController.offer"></habbo-targeted-offer><habbo-inventory inventory="StoreController.inventory" selected-category="{{StoreController.selectedCategory}}"></habbo-inventory></div><habbo-purse habbo-require-session class="aside aside--box"></habbo-purse><aside habbo-require-session class="aside aside--box"><h3 translate="SHOP_REDEEM_TITLE"></h3><habbo-voucher-redeem></habbo-voucher-redeem></aside><habbo-web-pages key="common/box_mall_info" class="aside aside--box"></habbo-web-pages></section>'),e.put("shop/transactions/transactions-list.html",'<div ng-if="TransactionsListController.transactions.length > 0"><habbo-transactions-history transactions="TransactionsListController.transactions" limit-to="{{TransactionsListController.transactionLimit}}"></habbo-transactions-history><div class="transactions__footer"><p class="transactions__notice" translate="TRANSACTIONS_NOTICE"></p><button ng-if="!TransactionsListController.hideShowAll\n && TransactionsListController.transactions.length > TransactionsListController.transactionLimit" ng-click="TransactionsListController.showAll()" class="transactions__button" translate="TRANSACTIONS_SHOW_ALL"></button></div></div><habbo-empty-results ng-if="TransactionsListController.transactions.length === 0" translation-key="TRANSACTIONS_EMPTY"></habbo-empty-results>'),e.put("shop/transactions/transactions.html",'<header class="shop__header"><h1 class="shop__header__title shop__header__title--single" translate="SHOP_TRANSACTIONS_TITLE"></h1></header><section><habbo-transactions-list transactions="TransactionsController.items" class="main"></habbo-transactions-list><habbo-purse class="aside aside--box"></habbo-purse><habbo-web-pages key="common/box_account_issues" class="aside aside--box"></habbo-web-pages></section>'),e.put("shop/voucher-redeem/voucher-redeem.html",'<form ng-submit="VoucherRedeemController.submit()" name="voucherRedeemForm" novalidate class="form"><div ng-switch on="VoucherRedeemController.captchaConfig.provider" class="form__footer"><div ng-switch-when="hcaptcha"><div habbo-h-captcha data-on-render="setWidgetId(widgetId)"></div><button ng-disabled="VoucherRedeemController.redeemInProgress || AvatarCreateFormController.captchaConfig.provider === null" type="submit" translate="SHOP_REDEEM_BUTTON" class="form__submit form__submit--inline"></button></div><div ng-switch-default><button ng-disabled="VoucherRedeemController.redeemInProgress || AvatarCreateFormController.captchaConfig.provider === null" type="submit" translate="SHOP_REDEEM_BUTTON" class="form__submit form__submit--inline"></button></div></div><fieldset class="form__fieldset form__fieldset--inline"><div class="form__field"><input placeholder="{{\'SHOP_REDEEM_PLACEHOLDER\' | translate}}" name="voucherCode" ng-model="VoucherRedeemController.voucherCode" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" ng-pattern="/^[a-z0-9]{8}$/i" required autocomplete="off" habbo-remote-data="[\'nonexistent\', \'redeemed\', \'failed\']" class="form__input voucher-redeem__input"><div ng-if="voucherRedeemForm.voucherCode.$invalid && (!voucherRedeemForm.voucherCode.$pristine || voucherRedeemForm.$submitted)" ng-messages="voucherRedeemForm.voucherCode.$error" class="form__popover form__popover--error form__popover--inline"><div ng-message="required">{{\'ERROR_FIELD_REQUIRED\' | translate}}</div><div ng-message="pattern">{{\'ERROR_VOUCHER_CODE_PATTERN\' | translate}}</div><div ng-message="remoteDataNonexistent">{{\'ERROR_VOUCHER_CODE_NONEXISTENT\' | translate}}</div><div ng-message="remoteDataRedeemed">{{\'ERROR_VOUCHER_CODE_REDEEMED\' | translate}}</div><div ng-message="remoteDataFailed">{{\'ERROR_VOUCHER_CODE_FAILED\' | translate}}</div></div></div></fieldset><small class="form__helper" translate="PREPAID_ORDER_INSTRUCTION"></small></form>'),e.put("common/columns/card/card.html",'<div class="card"><div class="card__content"><a habbo-creation-href="CardController.item" class="card__link"><div class="card__image__aligner"><img ng-src="{{:: CardController.item.url}}" ng-class="{\n \'card__image--selfie\': CardController.item.type === \'SELFIE\',\n \'card__image--photo\': CardController.item.type === \'PHOTO\',\n \'card__image--wide\': CardController.item.type === \'USER_CREATION\' && CardController.item.contentHeight < CardController.item.contentWidth,\n \'card__image--tall\': CardController.item.type === \'USER_CREATION\' && CardController.item.contentHeight >= CardController.item.contentWidth\n }" class="card__image" alt="{{:: CardController.item.title}}"></div></a><div class="card__meta"><h5 ng-if="CardController.item.title" class="card__title">{{:: CardController.item.title}}</h5><time class="card__date">{{:: CardController.item.time | date: \'shortDate\'}}</time><habbo-like data="CardController.item" class="card__like"></habbo-like></div></div><div ng-transclude></div></div>'),e.put("common/columns/columns-channel/columns-channel.html",'<div><div class="columns" ng-init="limit = 16" infinite-scroll="limit = limit + 8" infinite-scroll-distance="1"><habbo-card ng-repeat="card in ColumnsChannelController.items | limitTo: limit" item="card" class="columns__column"><habbo-avatar class="card__creator" user="{{:: card.creator_name}}"></habbo-avatar></habbo-card></div></div>'),e.put("common/columns/columns-profile/columns-profile.html",'<div><div ng-init="limit = 16" infinite-scroll="limit = limit + 8" infinite-scroll-distance="1" class="columns"><habbo-card ng-repeat="card in ColumnsProfileController.items | limitTo: limit" item="card" class="columns__column"></habbo-card></div></div>'),e.put("common/form/captcha/captcha.html",'<div class="form__field"><fieldset class="form__fieldset"><div class="form__field"><div><no-captcha ng-if="CaptchaController.isRecaptcha" g-recaptcha-response="CaptchaController.captchaToken" control="CaptchaController.noCaptchaController" expired-callback="CaptchaController.onExpire" class="captcha" site-key="{{CaptchaController.config.recaptchaKey}}"></no-captcha><div ng-if="CaptchaController.isHcaptcha" habbo-h-captcha data-size="normal" data-on-render="setWidgetId(widgetId)" data-captcha-token="CaptchaController.captchaToken" class="captcha"></div><input name="captchaToken" ng-model="CaptchaController.captchaToken" required type="hidden"></div></div></fieldset><div ng-if="CaptchaController.FormController.captchaToken.$invalid\n && (!CaptchaController.FormController.captchaToken.$pristine\n || CaptchaController.FormController.$submitted)" class="form__popover form__popover--error form__popover--captcha" translate="ERROR_CAPTCHA_REQUIRED"></div></div>'),e.put("common/form/email-address/email-address.html",'<fieldset class="form__fieldset"><div ng-transclude></div><div class="form__field"><input id="email-address" name="emailAddress" type="email" ng-model="EmailAddressController.emailAddress" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required habbo-email habbo-remote-data="[\'emailInvalid\', \'emailUsedInRegistration\', \'emailUsedInChange\']" autocomplete="off" class="form__input"><div ng-if="EmailAddressController.FormController.emailAddress.$invalid\n && (!EmailAddressController.FormController.emailAddress.$pristine\n || EmailAddressController.FormController.$submitted)" ng-messages="EmailAddressController.FormController.emailAddress.$error" class="form__popover form__popover--error"><div ng-message="email, remoteDataEmailInvalid">{{ \'ERROR_EMAIL_INVALID\' | translate }}</div><div ng-message="required">{{ \'ERROR_FIELD_REQUIRED\' | translate }}</div><div ng-message="remoteDataEmailUsedInRegistration">{{ \'ERROR_EMAIL_REGISTRATION_USED\' | translate }}</div><div ng-message="remoteDataEmailUsedInChange">{{ \'ERROR_EMAIL_CHANGE_USED\' | translate }}</div></div></div></fieldset>'),e.put("common/form/password-current/password-current.html",'<fieldset class="form__fieldset"><label for="password-current" translate="CURRENT_PASSWORD_LABEL" class="form__label"></label><div class="form__field"><input id="password-current" name="passwordCurrent" type="password" ng-model="PasswordCurrentController.passwordCurrent" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required habbo-password-toggle-mask habbo-remote-data="\'password\'" autocomplete="off" class="form__input"><div ng-if="PasswordCurrentController.FormController.passwordCurrent.$invalid\n && (!PasswordCurrentController.FormController.passwordCurrent.$pristine\n || PasswordCurrentController.FormController.$submitted)" ng-messages="PasswordCurrentController.FormController.passwordCurrent.$error" class="form__popover form__popover--error"><div ng-message="required">{{\'ERROR_FIELD_REQUIRED\' | translate}}</div><div ng-message="remoteDataPassword">{{\'ERROR_INCORRECT_PASSWORD\' | translate}}</div></div></div></fieldset>'),e.put("common/form/password-new/password-new.html",'<fieldset class="form__fieldset form__fieldset--box form__fieldset--box-top"><label for="password-new" class="form__label" translate="{{:: PasswordNewController.isNew === \'true\' ? \'NEW_PASSWORD_LABEL\' : \'PASSWORD_LABEL\'}}"></label><p translate="PASSWORD_CHANGE_HELP"></p><div class="form__field"><input id="password-new" name="passwordNew" type="password" ng-model="PasswordNewController.passwordNew" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required ng-maxlength="32" ng-minlength="6" habbo-password-email="{{:: PasswordNewController.userEmail}}" habbo-password-name="{{:: PasswordNewController.userName}}" habbo-password-pattern habbo-password-toggle-mask habbo-remote-data="[\'passwordName\', \'passwordEmail\', \'passwordUsed\']" autocomplete="off" class="form__input"><div ng-if="(PasswordNewController.FormController.passwordNew.$invalid\n && (!PasswordNewController.FormController.passwordNew.$pristine\n || PasswordNewController.FormController.$submitted))\n || (!PasswordNewController.FormController.passwordNew.$pristine\n && PasswordNewController.FormController.passwordNew.$valid)" ng-messages="PasswordNewController.FormController.passwordNew.$error" ng-class="{ \'form__popover--error\': PasswordNewController.FormController.passwordNew.$invalid }" class="form__popover"><div ng-message="required">{{\'ERROR_FIELD_REQUIRED\' | translate}}</div><habbo-password-strength ng-if="!PasswordNewController.FormController.passwordNew.$error.required" model-value="PasswordNewController.passwordNew" model-name="passwordNew"><div ng-message="maxlength">{{\'ERROR_PASSWORD_MAX_LENGTH\' | translate}}</div><div ng-message="minlength">{{\'ERROR_PASSWORD_MIN_LENGTH\' | translate}}</div><div ng-message="passwordPattern">{{\'ERROR_PASSWORD_PATTERN\' | translate}}</div><div ng-message="passwordName, remoteDataPasswordName">{{\'ERROR_PASSWORD_CONTAINS_NAME\' | translate}}</div><div ng-message="passwordEmail, remoteDataPasswordEmail">{{\'ERROR_PASSWORD_CONTAINS_EMAIL\' | translate}}</div><div ng-message="passwordUsed, remoteDataPasswordUsed">{{\'ERROR_PASSWORD_USED_EARLIER\' | translate}}</div></habbo-password-strength></div></div></fieldset><fieldset class="form__fieldset form__fieldset--box form__fieldset--box-bottom"><label for="password-new-repeated" class="form__label" translate="PASSWORD_REPEAT_LABEL"></label><div class="form__field"><input id="password-new-repeated" name="passwordNewRepeated" type="password" ng-model="PasswordNewController.passwordNewRepeated" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required habbo-matches="passwordNew" habbo-password-toggle-mask autocomplete="off" class="form__input"><div ng-if="PasswordNewController.FormController.passwordNew.$valid\n && PasswordNewController.FormController.passwordNewRepeated.$invalid" ng-messages="PasswordNewController.FormController.passwordNewRepeated.$error" class="form__popover form__popover--error"><div ng-message="required">{{\'ERROR_FIELD_REQUIRED\' | translate}}</div><div ng-message="matches">{{\'ERROR_PASSWORDS_NOT_MATCHING\' | translate}}</div></div></div></fieldset>'),e.put("common/form/safety-question-form-inputs/safety-question-form-inputs.html",'<div><fieldset class="form__fieldset form__fieldset--box form__fieldset--box-top"><label for="safety-questions-question1" class="form__label" translate="ACCOUNT_SECURITY_QUESTION1_LABEL"></label><div class="form__field"><select id="safety-questions-question1" name="question1" ng-options="question.questionKey | translate for question in $ctrl.questions | question: $ctrl.selectedQuestion2" ng-model="$ctrl.selectedQuestion1" class="form__select"></select></div><label for="safety-questions-answer1" class="form__label" translate="ACCOUNT_SECURITY_ANSWER1_LABEL"></label><div class="form__field"><input id="safety-questions-answer1" type="password" name="answer1" ng-model="$ctrl.answer1" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required maxlength="255" habbo-password-toggle-mask autocomplete="off" class="form__input"><div ng-if="$ctrl.answer1.$invalid && (!$ctrl.answer1.$pristine || $ctrl.$submitted)" ng-messages="$ctrl.answer1.$error" class="form__popover form__popover--error"><div ng-message="required">{{\'ERROR_FIELD_REQUIRED\' | translate}}</div></div></div></fieldset><fieldset class="form__fieldset form__fieldset--box form__fieldset--box-bottom"><label for="safety-questions-question2" class="form__label" translate="ACCOUNT_SECURITY_QUESTION2_LABEL"></label><div class="form__field"><select id="safety-questions-question2" name="question2" ng-options="question.questionKey | translate for question in $ctrl.questions | question: $ctrl.selectedQuestion1" ng-model="$ctrl.selectedQuestion2" class="form__select"></select></div><label for="safety-questions-answer2" class="form__label" translate="ACCOUNT_SECURITY_ANSWER2_LABEL"></label><div class="form__field"><input id="safety-questions-answer2" type="password" name="answer2" ng-model="$ctrl.answer2" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required maxlength="255" habbo-password-toggle-mask autocomplete="off" class="form__input"><div ng-if="$ctrl.answer2.$invalid && (!$ctrl.answer2.$pristine || $ctrl.$submitted)" ng-messages="$ctrl.answer2.$error" class="form__popover form__popover--error"><div ng-message="required">{{\'ERROR_FIELD_REQUIRED\' | translate}}</div></div></div></fieldset><habbo-password-current password-current="$ctrl.password"></habbo-password-current></div>'),e.put("common/form/search/search.html",'<input ng-model="SearchController.query" class="form__input search__input" placeholder="{{ \'SEARCH_PLACEHOLDER\' | translate }}"> <button class="search__clear" ng-click="SearchController.query = \'\';"></button>'),e.put("common/form/twofactor-code/twofactor-code.html",'<div class="twofactorcode"><input ng-repeat="n in $ctrl.inputs track by $index" ng-model="$ctrl.inputs[$index]" ng-keyup="$ctrl.onKeyup($index, $event)" ng-keydown="$ctrl.onKeydown($index, $event)" ng-paste="$ctrl.onPaste($event)" class="form__input form__input--twofactorcode"></div>'),e.put("common/header/hotel-button-native/hotel-button-native.html",'<a ng-if="$ctrl.visible" class="hotel-button-native" id="ga-linkid-native" ng-click="$ctrl.open()"><span class="hotel-button-native__text" translate="NAVIGATION_NATIVE_HOTEL"></span> </a>'),e.put("common/header/landing-menu/landing-menu.html",'<main class="landing-menu" ng-hide="!LandingMenuController.toggle"><div class="landing-menu__container"><div class="landing-menu__top"><div class="landing-menu__background"><img class="landing-menu__background__top landing-menu__background__left" src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/bg_topleft.c16c9d63.png" alt="top left clouds"> <img class="landing-menu__background__top landing-menu__background__right" src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/bg_topright.00cd59c5.png" alt="top right clouds"> <img class="landing-menu__background__bottom landing-menu__background__left" src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/bg_bottomleft.61999d1b.png" alt="bottom left pool"> <img class="landing-menu__background__bottom landing-menu__background__right" src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/bg_bottomright.0bb434c7.png" alt="bottom right hotel"></div><header class="landing-menu__header"><div class="landing-menu__header__logo"></div><div class="landing-menu__header__socials"><p class="landing-menu__header__socials__label" translate="FOLLOW_HABBO"></p><ul itemscope itemtype="http://schema.org/Organization"><link itemprop="url" href="https://www.habbo.fi"><li class="landing-menu__header__socials__item"><a href="https://www.facebook.com/Habbo" class="landing-menu__header__socials__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--facebook"></i></a></li><li class="landing-menu__header__socials__item"><a href="https://twitter.com/HabboFi" class="landing-menu__header__socials__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--twitter"></i></a></li><li class="landing-menu__header__socials__item"><a href="https://www.youtube.com/user/Habbo" class="landing-menu__header__socials__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--youtube"></i></a></li><li class="landing-menu__header__socials__item"><a href="https://www.instagram.com/habboofficial" class="landing-menu__header__socials__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--instagram"></i></a></li><li class="landing-menu__header__socials__item"><a href="https://www.habbo.fi/rss.xml" class="landing-menu__header__socials__link" target="_blank" itemprop="sameAs" rel="noopener noreferrer"><i class="icon icon--rss"></i></a></li></ul></div></header><section class="landing-menu__body"><div class="landing-menu__title" translate="LANDING_POPUP_TITLE"></div><div class="landing-menu__cards"><div class="landing-menu__card"><img class="landing-menu__card__image" src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/h_pic.9e3bb5d3.png"><p class="landing-menu__card__title" translate="LANDING_POPUP_HABBO_TITLE"></p><p class="landing-menu__card__text" translate="LANDING_POPUP_HABBO_DESCRIPTION"></p><a href="#" class="landing-menu__card__action__container"><button class="landing-menu__card__action habbo" ng-click="LandingMenuController.closeLandingMenu()"><img src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/h_logo.09606b0e.png"> <span translate="LANDING_POPUP_HABBO_BUTTON"></span></button></a></div><div class="landing-menu__card"><img class="landing-menu__card__image" src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/coll_pic.a26ac6d2.png"><p class="landing-menu__card__title" translate="LANDING_POPUP_HABBO_COLLECTIBLES_TITLE"></p><p class="landing-menu__card__text" translate="LANDING_POPUP_HABBO_COLLECTIBLES_DESCRIPTION"></p><a href="https://collectibles.habbo.com/" class="landing-menu__card__action__container"><button class="landing-menu__card__action collectibles"><img src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/coll_logo.db970961.png"> <span translate="LANDING_POPUP_HABBO_COLLECTIBLES_BUTTON"></span></button></a></div><div class="landing-menu__card"><img class="landing-menu__card__image" src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/orig_pic.852d257e.png"><p class="landing-menu__card__title" translate="LANDING_POPUP_HABBO_ORIGINS_TITLE"></p><p class="landing-menu__card__text" translate="LANDING_POPUP_HABBO_ORIGINS_DESCRIPTION"></p><a href="https://origins.habbo.fi/" class="landing-menu__card__action__container"><button class="landing-menu__card__action origins"><img src="https://images.habbo.com/habbo-web/america/fi/assets/images/landing/orig_logo.147d68e0.png"> <span translate="LANDING_POPUP_HABBO_ORIGINS_BUTTON"></span></button></a></div></div></section></div><footer class="landing-menu__footer"><p class="landing-menu__footer__text" translate="FOOTER_COPYRIGHT" translate-values="{ year: LandingMenuController.currentYear }"></p></footer></div></main>'),e.put("common/header/navigation/navigation.html",'<nav class="navigation"><ul class="navigation__menu"><li class="navigation__item"><a href="/" ng-class="{ \'navigation__link--active\': NavigationController.active === \'home\' }" class="navigation__link navigation__link--home" translate="NAVIGATION_HOME" id="ga-linkid-home"></a></li><li class="navigation__item"><a href="/community" ng-class="{ \'navigation__link--active\': NavigationController.active === \'community\' }" class="navigation__link navigation__link--community" translate="NAVIGATION_COMMUNITY" id="ga-linkid-community"></a></li><li class="navigation__item"><a href="/shop" ng-class="{ \'navigation__link--active\': NavigationController.active === \'shop\' }" class="navigation__link navigation__link--shop" translate="NAVIGATION_SHOP" id="ga-linkid-shop"></a></li><li class="navigation__item"><a href="/playing-habbo" ng-class="{ \'navigation__link--active\': NavigationController.active === \'playingHabbo\' }" class="navigation__link navigation__link--playing-habbo" translate="NAVIGATION_PLAYING_HABBO" id="ga-linkid-playing-habbo"></a></li><li class="navigation__item"><a href="/habbo-nft" ng-class="{ \'navigation__link--active\': NavigationController.active === \'habboNFT\' }" class="navigation__link navigation__link--habbo-nft" translate="NAVIGATION_HABBO_NFT" id="ga-linkid-habbo-nft"></a></li><li habbo-require-session class="navigation__item navigation__item--hotel"><habbo-hotel-native-button></habbo-hotel-native-button></li></ul></nav><habbo-landing-menu></habbo-landing-menu>'),e.put("common/header/user-menu/user-menu.html",'<div ng-init="toggle = false;" habbo-false-on-outside-click="toggle" class="user-menu"><div class="user-menu__header"><a ng-click="toggle = !toggle;" class="user-menu__toggle"><div class="user-menu__name__wrapper"><div class="user-menu__name" ng-class="{ \'user-menu__name--open\': toggle }">{{:: UserMenuController.user.name}}</div></div><habbo-imager figure="{{:: UserMenuController.user.figureString}}" name="{{:: UserMenuController.user.name}}" size="bighead" class="user-menu__avatar"></habbo-imager></a></div><ul ng-hide="!toggle" class="user-menu__list ng-hide"><li class="user-menu__item"><a ng-href="/profile/{{:: UserMenuController.user.name | encodeURIComponent}}" ng-class="{ \'user-menu__link--active\': UserMenuController.isMyProfileActive() }" class="user-menu__link user-menu__link--profile" translate="NAVIGATION_PROFILE"></a></li><li class="user-menu__item"><a href="/settings" ng-class="{ \'user-menu__link--active\': UserMenuController.isSettingsActive() }" class="user-menu__link user-menu__link--settings" translate="NAVIGATION_SETTINGS"></a></li><li class="user-menu__item"><a ng-href="{{\'HELP_URL\' | translate | zendeskRedirectUrl}}" class="user-menu__link user-menu__link--help" target="_blank" rel="noopener noreferrer" translate="NAVIGATION_HELP"></a></li><li class="user-menu__item"><a ng-click="UserMenuController.logout()" class="user-menu__link user-menu__link--logout" translate="NAVIGATION_LOGOUT"></a></li></ul></div>'),e.put("home/messaging/discussions/discussions.html",'<ul ng-if="DiscussionsController.items.length > 0"><li ng-repeat="discussion in DiscussionsController.items" class="discussions__item"><div class="discussions__participant"><habbo-avatar user="{{:: DiscussionsController.getParticipant(discussion.participants).name}}" big="true"></habbo-avatar></div><div class="discussions__wrapper"><h6 ng-if="discussion.messages.length > 0" am-time-ago="discussion.latestTime" class="discussions__timeago"></h6><ul><li ng-repeat="message in discussion.messages | limitTo: 3" class="discussions__message"><p class="discussions__text">{{:: message.message}}</p><time class="discussions__date"><small>{{:: message.sendTime | date: \'medium\'}}</small></time></li></ul><a ng-href="/hotel?link=friendlist/openchat/{{discussion.discussionId}}" habbo-require-flash translate="DISCUSSIONS_REPLY" class="discussions__reply"></a></div></li></ul><habbo-empty-results ng-if="DiscussionsController.items.length === 0" translation-key="DISCUSSIONS_EMPTY"></habbo-empty-results>'),e.put("home/news/moderation-notification/moderation-notification.html",'<habbo-message-container ng-if="ModerationNotificationController.moderations.length > 0" type="exclamation" class="moderation-notification static-content"><h3 translate="MODERATION_MESSAGE_TITLE"></h3><p translate="MODERATION_MESSAGE_TEXT" translate-values="{moderationCount: ModerationNotificationController.moderations.length}"></p><ul><li ng-repeat="moderation in ModerationNotificationController.moderations">{{:: moderation.createdAt | date: "fullDate" }}</li></ul><p translate="MODERATION_MESSAGE_INSTRUCTIONS"></p></habbo-message-container>'),e.put("home/register-banner/local-register-banner/local-register-banner.html",'<small ng-if="LocalRegisterBannerController.site" class="local-register-banner">{{ \'LOCAL_REGISTER_BANNER_\' + LocalRegisterBannerController.site.localization | translate }} <a ng-href="{{LocalRegisterBannerController.site.href}}">{{LocalRegisterBannerController.site.title}}</a> </small>'),e.put("hotel/client/client-reload/client-reload.html",'<h1 translate="RELOAD_TITLE"></h1><button ng-click="ClientReloadController.reload()" class="client-reload__button" translate="RELOAD_BUTTON"></button>'),e.put("hotel/client-common/client-closed/client-closed.html","<habbo-hotel-closed></habbo-hotel-closed>"),e.put("hotel/client-common/interstitial/interstitial.html",'<div ng-if="InterstitialController.started" ng-class="{ \'interstitial--visible\': InterstitialController.loaded }" class="interstitial"><div class="interstitial__stage"><iframe ng-src="{{InterstitialController.habboWebAdsUrl + \'interstitial.\' + InterstitialController.lang + \'.html\'}}" class="interstitial__ad"></iframe></div><p class="interstitial__text" translate="INTERS_DESCRIPTION"></p><p class="interstitial__text" translate="INTERS_INSTRUCTION"></p></div>'),e.put("profile/creation/photo-delete/photo-delete.html",'<button type="button" ng-click="PhotoDeleteController.delete()" class="photo-delete">{{\'CREATION_DELETE\' | translate}}</button>'),e.put("profile/creation/report/report-form.html",'<form ng-submit="ReportFormController.send()" name="reportForm" novalidate class="form"><p translate="REPORT_EXPLANATION"></p><img ng-src="{{:: ReportFormController.creation.url}}" class="report-form__creation"><fieldset class="form__fieldset form__fieldset--box"><p class="report-form__description" translate="REPORT_REMOVE_BECAUSE"></p><div ng-repeat="reason in ReportFormController.reasonCodes" class="form__field"><label class="form__label form__label--radiobutton"><input name="reportReason" ng-model="ReportFormController.creation.reportReason" ng-value="reason" required type="radio" class="form__radiobutton"> <span translate="REPORT_REASON_{{reason}}"></span></label></div></fieldset><div ng-if="reportForm.$invalid && reportForm.$submitted" ng-messages="reportForm.$error" class="form__popover form__popover--error"><div ng-message="required">{{\'ERROR_FIELD_REQUIRED\' | translate}}</div></div><p translate="REPORT_REPORT_FAIRLY"></p><div class="form__footer"><a ng-click="ReportFormController.onCancel()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button type="submit" class="form__submit report-form__submit" ng-disabled="ReportFormController.sendInProgress" translate="REPORT_SUBMIT"></button></div></form>'), e.put("profile/creation/report/report-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h4 class="modal__title" translate="REPORT_TITLE"></h4><div class="modal__content"><habbo-report-form creation="ReportController.creation" on-success="$close()" on-cancel="$dismiss()"></habbo-report-form></div>'),e.put("profile/creation/report/report.html",'<a ng-click="ReportController.click()" class="report"><i class="report__icon icon icon--report"></i> </a>'),e.put("profile/item-lists/room-icon/room-icon.html",'<div class="room-icon"><img habbo-show-on-load habbo-remove-on-error ng-src="{{:: RoomIconController.url}}" class="room-icon__thumbnail"></div>'),e.put("security/force/force-email/force-email-form.html",'<form ng-submit="ForceEmailFormController.save()" name="forceEmailChangeForm" autocomplete="off" novalidate class="form"><p translate="FORCED_EMAIL_CHANGE_TEXT"></p><h4 class="force-email__email">{{:: ForceEmailFormController.oldEmailAddress}}</h4><habbo-email-address email-address="ForceEmailFormController.emailAddress" type="box"><label for="email-address" class="form__label" translate="FORM_NEW_EMAIL_LABEL"></label></habbo-email-address><div class="form__footer"><a ng-click="ForceEmailFormController.onDismiss()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="ForceEmailFormController.saveInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_CHANGE"></button></div></form>'),e.put("security/force/force-email/force-email-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="FORCED_EMAIL_CHANGE_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-force-email-form old-email-address="{{:: ForceEmailController.oldEmailAddress}}" on-dismiss="$dismiss()" on-success="$close(email)"></habbo-force-email-form></div>'),e.put("security/force/force-password/force-password-form.html",'<form ng-submit="ForcePasswordFormController.change()" name="forcePasswordChangeForm" autocomplete="off" novalidate class="form"><p translate="FORCED_PASSWORD_CHANGE_TEXT"></p><habbo-password-new is-new="true" password-new="ForcePasswordFormController.passwords.password" password-new-repeated="ForcePasswordFormController.passwords.passwordRepeated"></habbo-password-new><div class="form__footer"><a ng-click="ForcePasswordFormController.onDismiss()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="ForcePasswordFormController.changeInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_CHANGE"></button></div></form>'),e.put("security/force/force-password/force-password-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="FORCED_PASSWORD_CHANGE_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-force-password-form on-dismiss="$dismiss()" on-success="$close()"></habbo-force-password-form></div>'),e.put("security/force/force-rpx-migration/force-rpx-migration-form.html",'<form ng-submit="ForceRpxMigrationFormController.save()" name="forceRpxMigrationChangeForm" autocomplete="off" novalidate class="form"><p translate="FORCED_RPX_MIGRATION_TEXT"></p><h4 class="force-rpx-migration__email">{{:: ForceRpxMigrationFormController.oldEmailAddress}}</h4><habbo-email-address email-address="ForceRpxMigrationFormController.emailAddress" type="box"><label for="email-address" class="form__label" translate="FORM_NEW_EMAIL_LABEL"></label></habbo-email-address><habbo-password-new is-new="true" password-new="ForceRpxMigrationFormController.passwords.password" password-new-repeated="ForceRpxMigrationFormController.passwords.passwordRepeated"></habbo-password-new><div class="form__footer"><a ng-click="ForceRpxMigrationFormController.onDismiss()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="ForceRpxMigrationFormController.saveInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_CHANGE"></button></div></form>'),e.put("security/force/force-rpx-migration/force-rpx-migration-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="FORCED_RPX_MIGRATION_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-force-rpx-migration-form old-email-address="{{:: ForceRpxMigrationController.oldEmailAddress}}" on-dismiss="$dismiss()" on-success="$close(email)"></habbo-force-rpx-migration-form></div>'),e.put("security/force/force-tos/force-tos-form.html",'<form ng-submit="ForceTosFormController.accept()" name="forceTOSAcceptForm" novalidate class="form"><p translate="NEW_USER_AGREEMENT_INFO_TEXT"></p><p translate="NEW_USER_AGREEMENT_GUIDE_TEXT"></p><div class="form__footer"><a ng-click="ForceTosFormController.onDismiss()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="ForceTosFormController.acceptInProgress" type="submit" class="form__submit" translate="NEW_USER_AGREEMENT_BUTTON"></button></div></form>'),e.put("security/force/force-tos/force-tos-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="NEW_USER_AGREEMENT_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-force-tos-form on-dismiss="$dismiss()" on-success="$close()"></habbo-force-tos-form></div>'),e.put("security/force/force-twofactor-app/force-twofactor-app-form.html",'<form ng-submit="ForceTwoFactorAppFormController.change()" name="forceTwoFactorAppForm" autocomplete="off" novalidate class="form form--twofactor"><fieldset class="form__fieldset"><p translate="FORCED_2FA_APP_VERIFY_TEXT"></p><div class="form__field"><habbo-two-factor-code ng-model="ForceTwoFactorAppFormController.code"></habbo-two-factor-code><button ng-disabled="ForceTwoFactorAppFormController.verifyInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_VERIFY"></button></div></fieldset><fieldset class="form__fieldset"><label for="set-app-location-trusted" class="form__field form__label form__label--checkbox"><input id="set-app-location-trusted" name="setLocationTrusted" ng-model="ForceTwoFactorAppFormController.setLocationTrusted" type="checkbox" class="form__checkbox"> <span translate="FORCED_2FA_APP_TRUSTED_LOCATION"></span></label></fieldset><fieldset class="" ng-if="ForceTwoFactorAppFormController.backupAvailable"><span translate="FORCED_2FA_APP_DEVICE_MISSING"></span> <a translate="FORCED_2FA_APP_ASK_BACKUP" ng-click="ForceTwoFactorAppFormController.askForBackup()"></a></fieldset></form>'),e.put("security/force/force-twofactor-app/force-twofactor-app-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="FORCED_2FA_APP_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-force-two-factor-app-form on-dismiss="$dismiss()" on-success="$close(useBackup)"></habbo-force-two-factor-app-form></div>'),e.put("security/force/force-twofactor-blacklist/force-twofactor-blacklist-form.html",'<form ng-submit="ForceTwoFactorBlacklistFormController.change()" name="forceTwoFactorBlacklistForm" autocomplete="off" novalidate class="form form--twofactor"><fieldset class="form__fieldset"><legend translate="FORCED_2FA_CLEAR_BLACKLIST"></legend><div class="form__field"><button ng-disabled="ForceTwoFactorBlacklistFormController.inProgress" type="submit" class="form__submit" translate="FORM_BUTTON_CLEAR_BLACKLIST"></button></div></fieldset></form>'),e.put("security/force/force-twofactor-blacklist/force-twofactor-blacklist-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="FORCED_2FA_CLEAR_BLACKLIST_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-force-two-factor-blacklist-form on-dismiss="$dismiss()" on-success="$close()"></habbo-force-two-factor-blacklist-form></div>'),e.put("security/force/force-twofactor-email/force-twofactor-email-form.html",'<form ng-submit="ForceTwoFactorEmailFormController.change()" name="forceTwoFactorEmailForm" autocomplete="off" novalidate class="form form--twofactor"><p translate="FORCED_2FA_EMAIL_VERIFY_TEXT"></p><p ng-if="ForceTwoFactorEmailFormController.email" translate="FORCED_2FA_EMAIL_VERIFY_TEXT_EMAIL_SENT" translate-values="{email:ForceTwoFactorEmailFormController.email }"></p><div class="form__field"><input name="twoFactorEmailCode" type="password" ng-model="ForceTwoFactorEmailFormController.code" required habbo-password-toggle-mask autocomplete="habbo-2fa-code" class="form__input"></div><fieldset class="form__fieldset"><label for="set-email-location-trusted" class="form__field form__label form__label--checkbox"><input id="set-email-location-trusted" name="setLocationTrusted" ng-model="ForceTwoFactorEmailFormController.setLocationTrusted" type="checkbox" class="form__checkbox"> <span translate="FORCED_2FA_EMAIL_TRUSTED_LOCATION"></span></label></fieldset><div class="form__footer"><button ng-disabled="ForceTwoFactorEmailFormController.verifyInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_VERIFY"></button></div></form>'),e.put("security/force/force-twofactor-email/force-twofactor-email-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="FORCED_2FA_EMAIL_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-force-two-factor-email-form on-dismiss="$dismiss()" on-success="$close(user)" email="vm.email"></habbo-force-two-factor-email-form></div>'),e.put("security/login/apple-connect/apple-connect.html",'<button ng-init="AppleConnectController.appleInit()" ng-click="AppleConnectController.appleLogin()" class="apple-connect">{{ AppleConnectController.translationKey | translate }}</button>'),e.put("security/login/captcha-modal/captcha-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="CAPTCHA_TITLE" class="modal__title"></h3><div class="modal__content"><form novalidate><p translate="CAPTCHA_DESCRIPTION"></p><habbo-captcha captcha-token="captchaToken"></habbo-captcha></form></div>'),e.put("security/login/claim-password/claim-password-form.html",'<form ng-submit="ClaimPasswordFormController.send()" name="claimPasswordForm" novalidate class="form"><div ng-hide="ClaimPasswordFormController.sent"><div ng-transclude></div><habbo-email-address email-address="ClaimPasswordFormController.emailAddress"><label for="email-address" class="form__label" translate="FORM_ACCOUNT_EMAIL_LABEL"></label></habbo-email-address><div class="form__footer"><a ng-click="ClaimPasswordFormController.cancel()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="ClaimPasswordFormController.sendingInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_SEND"></button></div></div><div ng-show="ClaimPasswordFormController.sent" class="ng-hide"><p translate="CLAIM_PASSWORD_SUCCESS"></p><h4 class="claim-password__email">{{ClaimPasswordFormController.emailAddress}}</h4><p><b translate="CLAIM_PASSWORD_SUCCESS_NOTE"></b></p></div></form>'),e.put("security/login/claim-password/claim-password-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 class="modal__title" translate="CLAIM_PASSWORD_TITLE"></h3><div class="modal__content"><habbo-claim-password-form cancel="$dismiss()"></habbo-claim-password-form></div>'),e.put("security/login/claim-password/recover-password-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 class="modal__title" translate="RECOVER_PASSWORD_TITLE"></h3><div class="modal__content"><habbo-claim-password-form email-address="RecoverPasswordController.email" cancel="$dismiss()"><div class="form__message form__message--error" translate="RECOVER_PASSWORD_ERROR"></div></habbo-claim-password-form></div>'),e.put("security/login/facebook-connect/facebook-connect.html",'<button ng-click="FacebookConnectController.fbLogin()" ng-disabled="FacebookConnectController.loginInProgress" class="facebook-connect">{{ FacebookConnectController.translationKey | translate }}</button>'),e.put("security/login/google-connect/google-connect.html",'<button ng-click="GoogleConnectController.googleLogin()" class="google-connect">{{ GoogleConnectController.translationKey | translate }}</button>'),e.put("settings/account-security/safety-lock-disable-modal/safety-lock-disable-form.html",'<form ng-submit="SafetyLockDisableFormController.disableSafetyLock()" name="safetyLockDisableForm" novalidate class="form"><p translate="ACCOUNT_SECURITY_DISABLE_CONFIRMATION"></p><habbo-password-current password-current="SafetyLockDisableFormController.validation.password"></habbo-password-current><habbo-captcha captcha-token="SafetyLockDisableFormController.validation.captchaToken"></habbo-captcha><div class="form__footer"><a ng-click="SafetyLockDisableFormController.onCancel()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="SafetyLockDisableFormController.disableInProgress" type="submit" translate="OK_BUTTON" class="form__submit"></button></div></form>'),e.put("settings/account-security/safety-lock-disable-modal/safety-lock-disable-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="ACCOUNT_SECURITY_DISABLE" class="modal__title"></h3><div class="modal__content"><habbo-safety-lock-disable-form on-disable="$close()" on-cancel="$dismiss()"></habbo-safety-lock-disable-form></div>'),e.put("settings/account-security/safety-questions/safety-questions-form.html",'<form ng-submit="SafetyQuestionsFormController.save()" name="safetyQuestionsForm" novalidate class="form"><p translate="ACCOUNT_SECURITY_FORM_DESCRIPTION"></p><safety-question-form-inputs selected-question1="SafetyQuestionsFormController.selectedQuestion1" selected-question2="SafetyQuestionsFormController.selectedQuestion2" answer1="SafetyQuestionsFormController.answer1" answer2="SafetyQuestionsFormController.answer2" password="SafetyQuestionsFormController.password"></safety-question-form-inputs><div class="form__footer"><a ng-click="SafetyQuestionsFormController.onCancel()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="SafetyQuestionsFormController.saveInProgress" type="submit" translate="FORM_BUTTON_SAVE" class="form__submit"></button></div></form>'),e.put("settings/account-security/safety-questions/safety-questions-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="ACCOUNT_SECURITY_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-safety-questions-form on-save="$close()" on-cancel="$dismiss()"></habbo-safety-questions-form></div>'),e.put("settings/avatar-selection/avatar-create/avatar-create-form.html",'<form ng-submit="AvatarCreateFormController.submit()" name="avatarCreateForm" novalidate class="form avatar-create-form"><fieldset class="form__fieldset"><label for="avatar-name" class="form__label" translate="AVATAR_CREATE_LABEL"></label><div class="form__field"><input id="avatar-name" name="name" ng-model="AvatarCreateFormController.name" ng-model-options="{ updateOn: \'default blur\', debounce: { default: 500, blur: 0 } }" required ng-minlength="3" ng-maxlength="15" ng-pattern="/^[a-zA-Z0-9_\\-\\=\\?\\!@\\:\\.,\\$]+$/" ng-trim="true" habbo-avatar-name-check autofocus class="form__input"><div ng-if="avatarCreateForm.name.$invalid && (!avatarCreateForm.name.$pristine || avatarCreateForm.$submitted)" ng-messages="avatarCreateForm.name.$error" class="form__popover form__popover--error"><div ng-message="required">{{\'ERROR_FIELD_REQUIRED\' | translate}}</div><div ng-message="minlength">{{\'ERROR_FIELD_MINLENGTH\' | translate: \'{ min: 3 }\'}}</div><div ng-message="maxlength">{{\'ERROR_FIELD_MAXLENGTH\' | translate: \'{ max: 15 }\'}}</div><div ng-message="pattern">{{\'ERROR_FIELD_NAME_FORMAT\' | translate}}</div><div ng-message="name">{{\'ERROR_FIELD_NAME_TAKEN\' | translate}}</div></div></div><small class="form__helper" translate="AVATAR_CREATE_HELP"></small></fieldset><div ng-switch on="AvatarCreateFormController.captchaConfig.provider" class="form__footer"><div ng-switch-when="hcaptcha"><a ng-click="AvatarCreateFormController.onCancel()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a><div habbo-h-captcha data-on-render="setWidgetId(widgetId)"></div><button ng-disabled="AvatarCreateFormController.createInProgress" type="submit" class="form__submit" translate="FORM_BUTTON_CREATE"></button></div><div ng-switch-default><a ng-click="AvatarCreateFormController.onCancel()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="AvatarCreateFormController.createInProgress || AvatarCreateFormController.captchaConfig.provider === null" type="submit" class="form__submit" translate="FORM_BUTTON_CREATE"></button></div></div></form>'),e.put("settings/avatar-selection/avatar-create/avatar-create-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="AVATAR_CREATE_TITLE" class="modal__title"></h3><div class="modal__content"><habbo-avatar-create-form on-create="$close()" on-cancel="$dismiss()"></habbo-avatar-create-form></div>'),e.put("settings/avatar-selection/avatar-create/avatar-create.html",'<div class="avatar-create" ng-class="{ \'avatar-create--disabled\': avatars.length >= MAX_AVATARS || (!emailVerified && !identityVerified) }"><div ng-if="avatars.length < MAX_AVATARS && identityVerified" class="avatar-create__text" translate="AVATAR_CREATE_MORE" translate-values="{ count: MAX_AVATARS - avatars.length }"></div><div ng-if="!emailVerified && !identityVerified" class="avatar-create__text" translate="AVATAR_CREATE_EMAIL_UNVERIFIED"></div><div ng-if="avatars.length >= MAX_AVATARS" class="avatar-create__text" translate="AVATAR_CREATE_MAX"></div><div class="avatar-create__button__wrapper"><button ng-click="open()" ng-disabled="avatars.length >= MAX_AVATARS || (!emailVerified && !identityVerified)" class="avatar-create__button" translate="AVATAR_CREATE_BUTTON"></button></div></div>'),e.put("settings/avatar-selection/avatar-search/avatar-search.html",'<habbo-search query="query"></habbo-search><ul class="avatar-search__avatars"><habbo-avatar-selector ng-repeat="avatar in AvatarSearchController.avatars | byNameDescriptionOrMotto: query | orderBy: [\'-lastWebAccess\', \'name\']" avatar="avatar"></habbo-avatar-selector></ul><habbo-empty-results ng-if="(AvatarSearchController.avatars | byNameDescriptionOrMotto: query).length === 0"></habbo-empty-results>'),e.put("settings/avatar-selection/avatar-search/avatar-selector.html",'<li ng-class="{ \'avatar-selector--selected\': AvatarSelectorController.isSelected }" class="avatar-selector"><habbo-imager figure="{{:: AvatarSelectorController.avatar.figureString}}" name="{{:: AvatarSelectorController.avatar.name}}" direction="s" action="stand" class="avatar-selector__avatar"></habbo-imager><div class="avatar-selector__content"><h4 class="avatar-selector__name">{{:: AvatarSelectorController.avatar.name}}</h4><p ng-if="AvatarSelectorController.avatar.motto" class="avatar-selector__details">{{:: AvatarSelectorController.avatar.motto}}</p><p class="avatar-selector__details avatar-selector__details--last-access">{{\'AVATAR_SELECTION_LAST_LOGIN\' | translate}} <time am-time-ago="AvatarSelectorController.avatar.lastWebAccess"></time></p><p ng-if="AvatarSelectorController.avatar.banned" class="avatar-selector__details--banned" translate="AVATAR_SELECTION_BANNED"></p></div><div ng-if="!AvatarSelectorController.isSelected && !AvatarSelectorController.avatar.banned" class="avatar-selector__select"><button habbo-require-non-staff-account-session ng-click="AvatarSelectorController.select()" ng-disabled="AvatarSelectorController.selectionInProgress" class="avatar-selector__button" translate="AVATAR_SELECTION_SELECT_BUTTON"></button></div></li>'),e.put("settings/email-change/activation-status/activation-status.html",'<habbo-message-container ng-if="ActivationStatusController.user.emailVerified" type="check"><h3 translate="EMAIL_VERIFIED_TITLE" class="activation-status__title"></h3><p translate="EMAIL_VERIFIED_TEXT" translate-values="{{:: ActivationStatusController.user}}" class="activation-status__text"></p></habbo-message-container><habbo-message-container ng-if="!ActivationStatusController.user.emailVerified" type="exclamation"><h3 translate="ACTIVATION_RESEND_TITLE" class="activation-status__title"></h3><p translate="ACTIVATION_RESEND_TEXT" translate-values="{{:: ActivationStatusController.user}}" class="activation-status__text"></p><div class="activation-status__controls"><button ng-click="ActivationStatusController.resend()" ng-disabled="ActivationStatusController.resendInProgress || ActivationStatusController.isSent" class="activation-status__submit" translate="ACTIVATION_RESEND_BUTTON"></button></div></habbo-message-container>'),e.put("settings/privacy-settings/gdpr-safety-questions/gdpr-safety-questions-form.html",'<form ng-submit="$ctrl.submit()" name="safetyQuestionsForm" novalidate class="form"><p ng-if="$ctrl.type === \'access\' || $ctrl.type === \'portability\'" translate="SETTINGS_GDPR_ACCESS_DESCRIPTION"></p><p ng-if="$ctrl.type === \'erasure\'" translate="SETTINGS_GDPR_ERASURE_DESCRIPTION"></p><p ng-if="$ctrl.type !== \'view\'" translate="GDPR_SAFETY_QUESTION_FORM_DESCRIPTION"></p><p ng-if="$ctrl.type === \'view\'" translate="GDPR_SAFETY_QUESTION_FORM_DESCRIPTION_FOR_VIEWING"></p><safety-question-form-inputs selected-question1="$ctrl.selectedQuestion1" selected-question2="$ctrl.selectedQuestion2" answer1="$ctrl.answer1" answer2="$ctrl.answer2" password="$ctrl.password"></safety-question-form-inputs><div class="form__footer"><a ng-click="$ctrl.onCancel()" class="form__cancel" translate="FORM_CANCEL_LABEL"></a> <button ng-disabled="$ctrl.saveInProgress" type="submit" translate="{{$ctrl.buttonTranlationKey}}" class="form__submit"></button></div></form>'),e.put("settings/privacy-settings/gdpr-safety-questions/gdpr-safety-questions-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="SETTINGS_GDPR_SECURITY_TITLE" class="modal__title"></h3><div class="modal__content"><gdpr-safety-questions-form type="$ctrl.type" button-tranlation-key="$ctrl.type === \'view\' ? \'FORM_BUTTON_VIEW\' : \'FORM_BUTTON_SAVE\'" on-result="$close(result)" on-cancel="$dismiss()"></gdpr-safety-questions-form></div>'),e.put("settings/two-factor-auth/disable/two-factor-auth-disable-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 class="modal__title" ng-if="!TwoFactorAuthDisableModalController.twoFactorAuthStatus.disabled" translate="TWO_FACTOR_AUTHENTICATION_DISABLE_TITLE"></h3><h3 class="modal__title" ng-if="TwoFactorAuthDisableModalController.twoFactorAuthStatus.disabled" translate="TWO_FACTOR_AUTHENTICATION_ENABLE_TITLE"></h3><two-factor-auth-disable on-success="$close()" on-cancel="$dismiss()" two-factor-auth-status="TwoFactorAuthDisableModalController.twoFactorAuthStatus"></two-factor-auth-disable>'),e.put("settings/two-factor-auth/disable/two-factor-auth-disable.html",'<div class="modal__content.modal-lg"><div class="two-factor-auth__description"><p ng-if="!TwoFactorAuthDisableController.twoFactorAuthStatus.disabled" translate="TWO_FACTOR_AUTHENTICATION_DISABLE_DESCRIPTION"></p><p ng-if="TwoFactorAuthDisableController.twoFactorAuthStatus.disabled" translate="TWO_FACTOR_AUTHENTICATION_ENABLE_DESCRIPTION"></p></div><div ng-if="TwoFactorAuthDisableController.twoFactorAuthStatus.twoFactorMethod === \'EMAIL\'" class="two-factor-auth__register two-factor-auth__register__email"><div class="two-factor-auth__email-code-container"><p class="two-factor-auth__description__inline">{{ \'TWO_FACTOR_AUTHENTICATION_CODE_SEND_TO\' | translate }} {{ TwoFactorAuthDisableController.twoFactorAuthStatus.email }}</p></div><div class="two-factor-auth__send-code-container"><button ng-click="TwoFactorAuthDisableController.sendEmailCode()" type="submit" class="form__submit two-factor-auth__send-code-button" translate="TWO_FACTOR_AUTHENTICATION_SEND_CODE_BUTTON"></button></div></div><form name="twoFactorAuthRegisterEmailForm" novalidate><div class="form__footer"><div ng-if="TwoFactorAuthDisableController.twoFactorAuthStatus.twoFactorMethod === \'EMAIL\'" class="two-factor-auth__email-code-container"><p class="two-factor-auth__description__inline">{{ \'TWO_FACTOR_AUTHENTICATION_ENTER_EMAIL_CODE\' | translate }} {{ TwoFactorAuthDisableController.twoFactorAuthStatus.email }}</p></div><div ng-if="TwoFactorAuthDisableController.twoFactorAuthStatus.twoFactorMethod === \'AUTHENTICATOR\'" class="two-factor-auth__email-code-container"><p class="two-factor-auth__description__inline" translate="TWO_FACTOR_AUTHENTICATION_ENTER_AUTH_CODE"></p></div><div class="two-factor-auth__email-code-container"><input id="two-factor-auth-app-disable-email-code" ng-if="TwoFactorAuthDisableController.twoFactorAuthStatus.twoFactorMethod === \'EMAIL\'" name="emailCode" ng-model="TwoFactorAuthDisableController.emailCode" required maxlength="20" minlength="1" autocomplete="off" class="form__input two-factor-auth__email-code-input"></div><div class="two-factor-auth__email-code-container"><habbo-two-factor-code ng-if="TwoFactorAuthDisableController.twoFactorAuthStatus.twoFactorMethod === \'AUTHENTICATOR\'" ng-model="TwoFactorAuthDisableController.authenticatorCode"></habbo-two-factor-code></div><div class="form__footer"><button ng-disabled="!TwoFactorAuthDisableController.isCodesComplete()" ng-if="!TwoFactorAuthDisableController.twoFactorAuthStatus.disabled" ng-click="TwoFactorAuthDisableController.disableTwoFactorAuth()" type="submit" class="form__submit two-factor-auth__auth-button" translate="TWO_FACTOR_AUTHENTICATION_DISABLE"></button> <button ng-disabled="!TwoFactorAuthDisableController.isCodesComplete()" ng-if="TwoFactorAuthDisableController.twoFactorAuthStatus.disabled" ng-click="TwoFactorAuthDisableController.enableTwoFactorAuth()" type="submit" class="form__submit two-factor-auth__auth-button" translate="TWO_FACTOR_AUTHENTICATION_ENABLE"></button> <button ng-click="TwoFactorAuthDisableController.onCancel()" class="form__submit two-factor-auth__cancel-button" translate="TWO_FACTOR_AUTHENTICATION_CANCEL_BUTTON"></button></div></div></form><div class="form__footer" ng-if="TwoFactorAuthDisableController.emailBackupEnabled && TwoFactorAuthDisableController.twoFactorAuthStatus.twoFactorMethod === \'AUTHENTICATOR\'"><div class="two-factor-auth__description two-factor-auth__askforbackup"><span translate="FORCED_2FA_APP_DEVICE_MISSING"></span> <a translate="FORCED_2FA_APP_ASK_BACKUP" ng-click="TwoFactorAuthDisableController.askForBackup()"></a></div></div></div>'),e.put("settings/two-factor-auth/register-authenticator/register-authenticator-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 class="modal__title" translate="TWO_FACTOR_AUTHENTICATION_REGISTER"></h3><two-factor-auth-register-authenticator on-success="$close()" on-cancel="$dismiss()"></two-factor-auth-register-authenticator>'),e.put("settings/two-factor-auth/register-authenticator/register-authenticator.html",'<div class="modal__content.modal-lg"><div class="two-factor-auth__description"><p translate="TWO_FACTOR_AUTHENTICATION_APP_DESCRIPTION"></p></div><div class="two-factor-auth__register"><div><p translate="TWO_FACTOR_AUTHENTICATION_APP_STEP1"></p><p translate="TWO_FACTOR_AUTHENTICATION_APP_STEP2"></p><p translate="TWO_FACTOR_AUTHENTICATION_APP_STEP3"></p><p translate="TWO_FACTOR_AUTHENTICATION_APP_STEP4"></p></div><img class="two-factor-auth__register__qr" ng-src="{{TwoFactorAuthRegisterAuthenticatorController.qrCode}}" ng-if="TwoFactorAuthRegisterAuthenticatorController.qrCode"></div><form name="twoFactorAuthRegisterAuthenticatorForm" novalidate><div class="form__footer"><div class="two-factor-auth__email-code-container" ng-if="TwoFactorAuthRegisterAuthenticatorController.email"><p class="two-factor-auth__description__inline">{{ \'TWO_FACTOR_AUTHENTICATION_ENTER_EMAIL_CODE\' | translate }} {{ TwoFactorAuthRegisterAuthenticatorController.email }}</p></div><div class="two-factor-auth__email-code-container" ng-if="TwoFactorAuthRegisterAuthenticatorController.email"><input id="two-factor-auth-app-reg-email-code" name="emailCode" ng-model="TwoFactorAuthRegisterAuthenticatorController.emailCode" required maxlength="20" minlength="1" autocomplete="off" class="form__input two-factor-auth__email-code-input"></div><div class="two-factor-auth__email-code-container"><p translate="TWO_FACTOR_AUTHENTICATION_ENTER_AUTH_CODE"></p></div><div class="two-factor-auth__email-code-container"><habbo-two-factor-code ng-model="TwoFactorAuthRegisterAuthenticatorController.twoFactorCode"></habbo-two-factor-code></div><div class="form__footer"><button ng-disabled="!TwoFactorAuthRegisterAuthenticatorController.isCodesComplete()" ng-click="TwoFactorAuthRegisterAuthenticatorController.completeRegistration()" type="submit" class="form__submit two-factor-auth__auth-button" translate="TWO_FACTOR_AUTHENTICATION_REGISTER_BUTTON"></button> <button ng-click="TwoFactorAuthRegisterAuthenticatorController.onCancel()" class="form__submit two-factor-auth__cancel-button" translate="TWO_FACTOR_AUTHENTICATION_CANCEL_BUTTON"></button></div></div></form></div>'),e.put("settings/two-factor-auth/register-email/register-email-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 class="modal__title" translate="TWO_FACTOR_AUTHENTICATION_REGISTER"></h3><two-factor-auth-register-email on-success="$close()" on-cancel="$dismiss()"></two-factor-auth-register-email>'),e.put("settings/two-factor-auth/register-email/register-email.html",'<div class="modal__content.modal-lg"><div class="two-factor-auth__description"><p translate="TWO_FACTOR_AUTHENTICATION_EMAIL_DESCRIPTION"></p></div><div class="two-factor-auth__register two-factor-auth__register__email"><div class="two-factor-auth__checkbox" ng-show="TwoFactorAuthRegisterEmailController.hasVerifiedEmail"><input id="two-factor-auth-reg-auth-input" name="twoFactorAuthRegAuthInput" ng-model="TwoFactorAuthRegisterEmailController.sameAsHabboEmail" ng-change="TwoFactorAuthRegisterEmailController.setSameHabboEmail()" required type="checkbox" class="form__checkbox two-factor-auth__checkbox"><label class="two-factor-auth__label" translate="TWO_FACTOR_AUTHENTICATION_USE_SAME_EMAIL"></label></div><input id="two-factor-auth-email-reg-email" type="email" name="email" ng-model="TwoFactorAuthRegisterEmailController.email" required maxlength="50" minlength="3" autocomplete="off" class="form__input two-factor-auth__email-input"><div class="two-factor-auth__send-code-container"><button ng-disabled="TwoFactorAuthRegisterEmailController.isInvalidEmail()" ng-click="TwoFactorAuthRegisterEmailController.startRegistration()" type="submit" class="form__submit two-factor-auth__send-code-button" translate="TWO_FACTOR_AUTHENTICATION_SEND_CODE_BUTTON"></button></div></div><form name="twoFactorAuthRegisterEmailForm" novalidate><div class="form__footer"><div class="two-factor-auth__email-code-container"><p class="two-factor-auth__description__inline">{{ \'TWO_FACTOR_AUTHENTICATION_ENTER_EMAIL_CODE\' | translate }} {{ TwoFactorAuthRegisterEmailController.email }}</p></div><div><div class="two-factor-auth__email-code-container"><input id="two-factor-auth-email-reg-email-code" name="emailCode" ng-model="TwoFactorAuthRegisterEmailController.emailCode" required maxlength="50" minlength="1" autocomplete="off" class="form__input two-factor-auth__email-code-input"></div></div><div class="form__footer"><button ng-disabled="!TwoFactorAuthRegisterEmailController.isCodesComplete()" ng-click="TwoFactorAuthRegisterEmailController.completeRegistration()" type="submit" class="form__submit two-factor-auth__auth-button" translate="TWO_FACTOR_AUTHENTICATION_REGISTER_BUTTON"></button> <button ng-click="TwoFactorAuthRegisterEmailController.onCancel()" class="form__submit two-factor-auth__cancel-button" translate="TWO_FACTOR_AUTHENTICATION_CANCEL_BUTTON"></button></div></div></form></div>'),e.put("settings/wallet-settings/avatar-perk-notification/avatar-perk-notification.html",'<div class="avatar-perk-notification" ng-if="!HabboAvatarPerkNotificationController.hasTokens()"><div class="avatar-perk-notification__text" translate="AVATAR_PERKS_UNAVAILABLE_NO_TOKENS"></div><div class="avatar-perk-notification__text" translate="FURNITURE_PERK_AVAILABLE_NO_TOKENS"></div><div class="avatar-perk-notification__button__wrapper"><button class="avatar-perk-notification__button" translate="OPENSEA_AVATARS"></button></div></div><div class="avatar-perk-notification" ng-if="HabboAvatarPerkNotificationController.hasTokens()"><div ng-if="HabboAvatarPerkNotificationController.hasAvailableAvatarPerks()" class="avatar-perk-notification__text" translate="AVATAR_PERKS_AVAILABLE" translate-values="{ count: HabboAvatarPerkNotificationController.availableAvatarPerks() }"></div><div ng-if="!HabboAvatarPerkNotificationController.hasAvailableAvatarPerks()" class="avatar-perk-notification__text" translate="AVATAR_PERKS_UNAVAILABLE"></div><div ng-if="HabboAvatarPerkNotificationController.hasAvailableFurniturePerk()" class="avatar-perk-notification__text" translate="FURNITURE_PERK_AVAILABLE"></div><div ng-if="!HabboAvatarPerkNotificationController.hasAvailableFurniturePerk()" class="avatar-perk-notification__text" translate="FURNITURE_PERK_UNAVAILABLE"></div><div class="avatar-perk-notification__button__wrapper"><button class="avatar-perk-notification__button" translate="OPENSEA_AVATARS"></button></div></div>'), e.put("settings/wallet-settings/avatar-perk-search/avatar-perk-search.html",'<habbo-avatar-perk-notification avatars="WalletsController.avatars"></habbo-avatar-perk-notification><habbo-search query="query"></habbo-search><ul class="avatar-perk-search__avatars"><habbo-avatar-perk-selector ng-repeat="avatar in AvatarPerkSearchController.avatars | byNameDescriptionOrMotto: query | orderBy: [\'-lastWebAccess\', \'name\']" avatar="avatar"></habbo-avatar-perk-selector></ul><habbo-empty-results ng-if="(AvatarPerkSearchController.avatars | byNameDescriptionOrMotto: query).length === 0"></habbo-empty-results>'),e.put("settings/wallet-settings/avatar-perk-search/avatar-perk-selector.html",'<li class="avatar-perk-selector"><habbo-imager figure="{{:: AvatarPerkSelectorController.avatar.figureString}}" name="{{:: AvatarPerkSelectorController.avatar.name}}" direction="sw" action="stand" class="avatar-perk-selector__avatar"></habbo-imager><div class="avatar-perk-selector__content"><h4 class="avatar-perk-selector__name">{{:: AvatarPerkSelectorController.avatar.name}}</h4><p ng-if="AvatarPerkSelectorController.avatar.motto" class="avatar-perk-selector__details">{{:: AvatarPerkSelectorController.avatar.motto}}</p><p class="avatar-perk-selector__details avatar-perk-selector__details--last-access">{{\'AVATAR_SELECTION_LAST_LOGIN\' | translate}} <time am-time-ago="AvatarPerkSelectorController.avatar.lastWebAccess"></time></p><p ng-if="AvatarPerkSelectorController.avatar.banned" class="avatar-perk-selector__details--banned" translate="AVATAR_SELECTION_BANNED"></p></div><div class="avatar-perk-selector__select"><button ng-if="!AvatarPerkSelectorController.hasAvatarPerkEnabled()" ng-click="AvatarPerkSelectorController.enableAvatarPerk()" ng-disabled="AvatarPerkSelectorController.selectionInProgress || AvatarPerkSelectorController.avatar.banned || !AvatarPerkSelectorController.hasAvatarPerksAvailable() || AvatarPerkSelectorController.getTotalTokens() == 0" class="avatar-perk-selector__button" translate="ENABLE_AVATAR_PERKS"></button> <button ng-if="AvatarPerkSelectorController.hasAvatarPerkEnabled()" ng-click="AvatarPerkSelectorController.disableAvatarPerk()" ng-disabled="AvatarPerkSelectorController.selectionInProgress" class="avatar-perk-selector__button" translate="DISABLE_AVATAR_PERKS"></button> <button ng-if="!AvatarPerkSelectorController.hasFurniturePerkEnabled()" ng-click="AvatarPerkSelectorController.enableFurniturePerk()" ng-disabled="AvatarPerkSelectorController.selectionInProgress || AvatarPerkSelectorController.avatar.banned || AvatarPerkSelectorController.hasFurniturePerk" class="avatar-perk-selector__button" translate="ENABLE_FURNI_PERK"></button> <button ng-if="AvatarPerkSelectorController.hasFurniturePerkEnabled()" ng-click="AvatarPerkSelectorController.disableFurniturePerk()" ng-disabled="AvatarPerkSelectorController.selectionInProgress || AvatarPerkSelectorController.avatar.banned" class="avatar-perk-selector__button" translate="DISABLE_FURNI_PERK"></button></div></li>'),e.put("shop/credit-card-form/credit-card-icon/credit-card-icon.html",'<span ng-if="VoucherIconController.product.icons[0]"> <img ng-src="{{:: VoucherIconController.product.icons[0]}}" class="credit-card-icon__product"> {{:: CreditCardIconController.product.name}} </span><span ng-if="VoucherIconController.credits"> <i class="credit-card-icon__credits"></i> {{:: CreditCardIconController.credits}} </span>'),e.put("shop/payment-details/credit-payment-details/credit-payment-details.html",'<habbo-credit-icon amount="{{:: CreditPaymentDetailsController.item.creditAmount}}" double-credits="{{:: CreditPaymentDetailsController.item.doubleCredits}}" class="payment-details__icon"></habbo-credit-icon><div class="payment-details"><header class="payment-details__header"><h3 class="payment-details__title"><habbo-currency-title amount="{{:: CreditPaymentDetailsController.item.creditAmount}}" double-credits="{{:: CreditPaymentDetailsController.item.doubleCredits}}" title="{{:: CreditPaymentDetailsController.title}}"></habbo-currency-title></h3><div class="payment-details__price">{{:: CreditPaymentDetailsController.item.price }}</div></header><p ng-if="CreditPaymentDetailsController.item.doubleCredits" translate="SHOP_DOUBLE_CREDITS_DESCRIPTION" translate-values="{ value: CreditPaymentDetailsController.item.creditAmount }"></p><p ng-if="!CreditPaymentDetailsController.item.doubleCredits" translate="{{CreditPaymentDetailsController.desc}}" translate-values="{ value: CreditPaymentDetailsController.item.creditAmount }"></p><habbo-payment-steps item="CreditPaymentDetailsController.item" selected-category="{{CreditPaymentDetailsController.selectedCategory}}"><habbo-payment-info type="store"></habbo-payment-info></habbo-payment-steps></div>'),e.put("shop/payment-details/offer-payment-details/offer-payment-details.html",'<habbo-product-icon image-name="{{:: OfferPaymentDetailsController.offerPaymentDetails.smallImageUrl}}" image-url="true" class="payment-details__icon"></habbo-product-icon><div class="payment-details"><header class="payment-details__header"><h3 class="payment-details__title">{{:: OfferPaymentDetailsController.offerPaymentDetails.name }}</h3><span class="payment-details__price">{{:: OfferPaymentDetailsController.offerPaymentDetails.price }}</span></header><p>{{:: OfferPaymentDetailsController.offerPaymentDetails.description }}</p><img ng-src="{{:: OfferPaymentDetailsController.offerPaymentDetails.imageUrl}}" class="payment-details__image"><habbo-payment-steps item="OfferPaymentDetailsController.offerPaymentDetails"><habbo-payment-info type="store"></habbo-payment-info></habbo-payment-steps></div>'),e.put("shop/payment-details/payment-info/payment-info-store.html",'<h3 class="payment-steps__title" translate="SHOP_PAYMENT_METHOD"></h3><p class="payment-steps__legal" translate="SHOP_PAYMENT_METHOD_INFO"></p>'),e.put("shop/payment-details/payment-info/payment-info-subscription.html",'<h3 class="payment-steps__title" translate="SHOP_SUBSCRIPTION_METHOD"></h3><p class="payment-steps__legal" translate="SHOP_SUBSCRIPTION_METHOD_INFO"></p>'),e.put("shop/payment-details/payment-steps/payment-steps.html",'<div ng-if="!PaymentStepsController.disclaimerMethod && !PaymentStepsController.premiumSmsMethod && !PaymentStepsController.adyenMethod" class="payment-steps"><div ng-if="PaymentStepsController.user" class="payment-steps__step"><h3 class="payment-steps__title" translate="SHOP_PAYMENT_DETAILS"></h3><table class="payment-steps__user"><tr><td translate="FORM_NAME_LABEL"></td><td>{{:: PaymentStepsController.user.name}}</td></tr><tr habbo-require-habbo-session-with-email><td translate="FORM_EMAIL_LABEL"></td><td>{{:: PaymentStepsController.user.email}}</td></tr></table></div><habbo-claim-offer ng-if="PaymentStepsController.isZero" item="PaymentStepsController.item"></habbo-claim-offer><div ng-if="!PaymentStepsController.isZero" ng-transclude class="payment-steps__step"></div><habbo-payment-methods ng-if="!PaymentStepsController.isZero" item="PaymentStepsController.item" selected-category="{{PaymentStepsController.selectedCategory}}" class="payment-steps__step"></habbo-payment-methods></div><habbo-payment-disclaimer ng-if="PaymentStepsController.disclaimerMethod && !PaymentStepsController.isZero" item="PaymentStepsController.item" method="PaymentStepsController.disclaimerMethod"></habbo-payment-disclaimer><habbo-premium-sms ng-if="PaymentStepsController.premiumSmsMethod && !PaymentStepsController.isZero" method="PaymentStepsController.premiumSmsMethod"></habbo-premium-sms><habbo-adyen ng-if="PaymentStepsController.adyenMethod && !PaymentStepsController.isZero" item="PaymentStepsController.item" method="PaymentStepsController.adyenMethod"></habbo-adyen><div ng-if="!PaymentStepsController.isZero && (PaymentStepsController.disclaimerMethod || PaymentStepsController.premiumSmsMethod || PaymentStepsController.adyenMethod)" class="payment-steps__cancel"><a ng-click="PaymentStepsController.reset()" translate="SHOP_DISCLAIMER_CANCEL"></a></div>'),e.put("shop/payment-details/product-payment-details/product-payment-details.html",'<habbo-product-icon image-name="{{:: ProductPaymentDetailsController.item.imageName}}" class="payment-details__icon"></habbo-product-icon><div class="payment-details"><header class="payment-details__header"><h3 class="payment-details__title">{{:: ProductPaymentDetailsController.item.name}}</h3><div class="payment-details__price">{{:: ProductPaymentDetailsController.item.price}}</div></header><p>{{:: ProductPaymentDetailsController.item.description}}</p><habbo-sub-product-icons ng-if="ProductPaymentDetailsController.item.subProducts" sub-products="ProductPaymentDetailsController.item.subProducts"></habbo-sub-product-icons><habbo-payment-steps item="ProductPaymentDetailsController.item" selected-category="{{ProductPaymentDetailsController.selectedCategory}}"><habbo-payment-info type="store"></habbo-payment-info></habbo-payment-steps></div>'),e.put("shop/payment-details/subscription-payment-details/subscription-payment-details.html",'<habbo-product-icon image-name="{{:: SubscriptionPaymentDetailsController.item.imageName}}" class="payment-details__icon"></habbo-product-icon><div class="payment-details"><header class="payment-details__header"><h3 class="payment-details__title">{{:: SubscriptionPaymentDetailsController.item.name}}</h3><div class="payment-details__price">{{:: SubscriptionPaymentDetailsController.item.price}}<small class="subscription__price-unit" translate="SHOP_SUBSCRIPTION_PER_MONTH"></small></div></header><p>{{:: SubscriptionPaymentDetailsController.item.description}}</p><habbo-payment-steps item="SubscriptionPaymentDetailsController.item" selected-category="{{SubscriptionPaymentDetailsController.selectedCategory}}"><habbo-payment-info type="subscription"></habbo-payment-info></habbo-payment-steps></div>'),e.put("shop/store/category-filter/category-filter.html",'<ul class="category-filter"><li class="category-filter__item" ng-repeat="category in CategoryFilterController.paymentCategories"><a ng-click="CategoryFilterController.update(category.key)" translate="{{:: category.translateKey}}" ng-class="{ \'category-filter__link--active\': CategoryFilterController.isActive(category.key) }" class="category-filter__link"></a></li></ul>'),e.put("shop/store/inventory/credits.html",'<section><h3 class="inventory__section__title" translate="SHOP_CURRENCIES_TITLE"></h3><habbo-accordion-grid class="inventory__grid"><habbo-accordion-item ng-repeat="item in CreditsController.items track by item.id"><habbo-accordion-item-preview><habbo-credit-thumbnail item="item"></habbo-credit-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-credit-payment-details item="item" selected-category="{{CreditsController.selectedCategory}}"></habbo-credit-payment-details></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid></section>'),e.put("shop/store/inventory/inventory.html",'<habbo-weekly-deal class="habbo-shop-sections" ng-if="InventoryController.dealOfWeek.length > 0" items="InventoryController.dealOfWeek" selected-category="{{InventoryController.selectedCategory}}"></habbo-weekly-deal><habbo-daily-deal class="habbo-shop-sections habbo-shop-daily-offer" ng-if="InventoryController.dealOfDay.length > 0 && !InventoryController.hideDealOfDay" items="InventoryController.dealOfDay" selected-category="{{InventoryController.selectedCategory}}" update-daily-section="InventoryController.updateSection()"></habbo-daily-deal><div ng-if="InventoryController.isDoubleCreditsActive"><habbo-credits class="habbo-shop-sections" ng-if="InventoryController.creditItems.length > 0" items="InventoryController.creditItems" selected-category="{{InventoryController.selectedCategory}}"></habbo-credits><habbo-bundles class="habbo-shop-sections" ng-if="InventoryController.bundleItems.length > 0" items="InventoryController.bundleItems" selected-category="{{InventoryController.selectedCategory}}"></habbo-bundles><habbo-memberships class="habbo-shop-sections" ng-if="InventoryController.membershipItems.length > 0" items="InventoryController.membershipItems" selected-category="{{InventoryController.selectedCategory}}"></habbo-memberships></div><div ng-if="!InventoryController.isDoubleCreditsActive"><habbo-bundles class="habbo-shop-sections" ng-if="InventoryController.bundleItems.length > 0" items="InventoryController.bundleItems" selected-category="{{InventoryController.selectedCategory}}"></habbo-bundles><habbo-memberships class="habbo-shop-sections" ng-if="InventoryController.membershipItems.length > 0" items="InventoryController.membershipItems" selected-category="{{InventoryController.selectedCategory}}"></habbo-memberships><habbo-credits class="habbo-shop-sections" ng-if="InventoryController.creditItems.length > 0" items="InventoryController.creditItems" selected-category="{{InventoryController.selectedCategory}}"></habbo-credits></div>'),e.put("shop/store/inventory/products.html",'<section><h3 class="inventory__section__title" translate="SHOP_OFFERINGS_TITLE"></h3><habbo-accordion-grid class="inventory__grid"><habbo-accordion-item ng-repeat="item in ProductsController.items track by item.id"><habbo-accordion-item-preview><habbo-product-thumbnail item="item"></habbo-product-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-product-payment-details item="item" selected-category="{{ProductsController.selectedCategory}}"></habbo-product-payment-details></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid></section>'),e.put("shop/store/targeted-offer/targeted-offer.html",'<habbo-accordion-grid class="offer__grid"><habbo-accordion-item class="accordion__item--single"><habbo-accordion-item-preview><habbo-offer-thumbnail item="TargetedOfferController.offer" class="offer__item__thumbnail"></habbo-offer-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-offer-payment-details offer-payment-details="TargetedOfferController.offerPaymentDetails"></habbo-offer-payment-details></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid>'),e.put("shop/thumbnails/credit-thumbnail/credit-thumbnail.html",'<div class="inventory-thumbnail"><div class="inventory-thumbnail__body"><div ng-class="{\'inventory-thumbnail__start-price\': CreditThumbnailController.currencyPositionStart, \'inventory-thumbnail__chain-tag\': CreditThumbnailController.isOfferChain, \'inventory-thumbnail__free-tag\': CreditThumbnailController.isZero }" class="inventory-thumbnail__pricetag"><p ng-if="CreditThumbnailController.purchasedOffers && CreditThumbnailController.totalOffers">{{:: CreditThumbnailController.purchasedOffers}} / {{:: CreditThumbnailController.totalOffers}}</p><p ng-if="!CreditThumbnailController.isZero" class="inventory-thumbnail__price" ng-class="{\'condensed\': (CreditThumbnailController.amount.length > 5)}">{{:: CreditThumbnailController.amount}}</p><p ng-if="CreditThumbnailController.isZero" class="inventory-thumbnail__price" translate="FREE"></p><p ng-if="!CreditThumbnailController.isZero" class="inventory-thumbnail__currency">{{:: CreditThumbnailController.currency}}</p></div><habbo-credit-icon ng-if="CreditThumbnailController.isCredit" amount="{{:: CreditThumbnailController.item.creditAmount}}" image-name="{{:: CreditThumbnailController.item.imageName}}" double-credits="{{:: CreditThumbnailController.item.doubleCredits}}" class="inventory-thumbnail__icon"></habbo-credit-icon><habbo-product-icon ng-if="!CreditThumbnailController.isCredit" image-name="{{:: CreditThumbnailController.item.imageName}}" class="inventory-thumbnail__icon"></habbo-product-icon><div class="inventory-thumbnail__tag"><div ng-if="CreditThumbnailController.item.isFeatured" class="inventory-thumbnail__tag__bg inventory-thumbnail__featured"><span class="inventory-thumbnail__tag__title" translate="SHOP_OFFERINGS_FEATURED_TITLE"></span></div><div ng-if="CreditThumbnailController.item.isMostPopular" class="inventory-thumbnail__tag__bg inventory-thumbnail__best-deal"><span class="inventory-thumbnail__tag__title" translate="SHOP_OFFERINGS_BEST_DEAL_TITLE"></span></div><habbo-countdown-timer ng-if="CreditThumbnailController.item.isChainOffer" end-date="{{CreditThumbnailController.item.offerEndDate}}"></habbo-countdown-timer></div><div class="inventory-thumbnail__banner"><habbo-currency-title amount="{{:: CreditThumbnailController.item.creditAmount}}" double-credits="{{:: CreditThumbnailController.item.doubleCredits}}" title="{{:: CreditThumbnailController.title}}"></habbo-currency-title></div></div></div>'),e.put("shop/thumbnails/offer-thumbnail/offer-thumbnail.html",'<div class="inventory-thumbnail"><div class="inventory-thumbnail__body"><div ng-class="{ \'inventory-thumbnail__start-price\': OfferThumbnailController.currencyPositionStart, \'inventory-thumbnail__chain-tag\': OfferThumbnailController.isOfferChain, \'inventory-thumbnail__free-tag\' : OfferThumbnailController.isZero }" class="inventory-thumbnail__pricetag"><p ng-if="!OfferThumbnailController.isZero" class="inventory-thumbnail__price">{{:: OfferThumbnailController.amount}}</p><p ng-if="!OfferThumbnailController.isZero" class="inventory-thumbnail__currency">{{:: OfferThumbnailController.currency}}</p></div><habbo-product-icon image-name="{{:: OfferThumbnailController.item.imageUrl}}" class="inventory-thumbnail__icon" image-url="true"></habbo-product-icon><div class="inventory-thumbnail__tag"><div ng-if="OfferThumbnailController.item.pricePoint.isFeatured" class="inventory-thumbnail__tag__bg inventory-thumbnail__featured"><span class="inventory-thumbnail__tag__title" translate="SHOP_OFFERINGS_FEATURED_TITLE"></span></div><div ng-if="OfferThumbnailController.item.pricePoint.isMostPopular" class="inventory-thumbnail__tag__bg inventory-thumbnail__best-deal"><span class="inventory-thumbnail__tag__title" translate="SHOP_OFFERINGS_BEST_DEAL_TITLE"></span></div><habbo-countdown-timer highlight="{{OfferThumbnailController.item.highlight}}" end-date="{{OfferThumbnailController.item.expirationDate}}"></habbo-countdown-timer></div><div class="inventory-thumbnail__banner"><span class="inventory-thumbnail__title">{{:: OfferThumbnailController.item.header}}</span></div></div></div>'),e.put("shop/thumbnails/product-thumbnail/product-thumbnail.html",'<div class="inventory-thumbnail"><div class="inventory-thumbnail__body"><div ng-class="{ \'inventory-thumbnail__start-price\': ProductThumbnailController.currencyPositionStart, \'inventory-thumbnail__chain-tag\': ProductThumbnailController.isOfferChain, \'inventory-thumbnail__free-tag\' : ProductThumbnailController.isZero }" class="inventory-thumbnail__pricetag"><p ng-if="ProductThumbnailController.item.isChainOffer && ProductThumbnailController.purchasedOffers && ProductThumbnailController.totalOffers">{{:: ProductThumbnailController.purchasedOffers}} / {{:: ProductThumbnailController.totalOffers}}</p><p ng-if="!ProductThumbnailController.isZero" class="inventory-thumbnail__price" ng-class="{\'condensed\': (ProductThumbnailController.amount.length > 5)}">{{:: ProductThumbnailController.amount}}</p><p ng-if="ProductThumbnailController.isZero" class="inventory-thumbnail__price" translate="FREE"></p><p ng-if="!ProductThumbnailController.isZero" class="inventory-thumbnail__currency">{{:: ProductThumbnailController.currency}}</p></div><habbo-product-icon image-name="{{:: ProductThumbnailController.item.imageName}}" class="inventory-thumbnail__icon"></habbo-product-icon><div class="inventory-thumbnail__tag"><div ng-if="ProductThumbnailController.item.isFeatured" class="inventory-thumbnail__tag__bg inventory-thumbnail__featured"><span class="inventory-thumbnail__tag__title" translate="SHOP_OFFERINGS_FEATURED_TITLE"></span></div><div ng-if="ProductThumbnailController.item.isMostPopular" class="inventory-thumbnail__tag__bg inventory-thumbnail__best-deal"><span class="inventory-thumbnail__tag__title" translate="SHOP_OFFERINGS_BEST_DEAL_TITLE"></span></div><habbo-countdown-timer ng-if="ProductThumbnailController.item.isDailyOffer || ProductThumbnailController.item.isWeeklyOffer" end-date="{{ProductThumbnailController.item.offerEndDate}}"></habbo-countdown-timer></div><div class="inventory-thumbnail__banner"><span class="inventory-thumbnail__title">{{:: ProductThumbnailController.item.name}}</span></div></div></div>'),e.put("shop/thumbnails/subscription-thumbnail/subscription-thumbnail.html",'<div class="inventory-thumbnail"><div class="inventory-thumbnail__body"><habbo-product-icon image-name="{{:: SubscriptionThumbnailController.item.imageName}}" class="inventory-thumbnail__icon"></habbo-product-icon><div class="inventory-thumbnail__text"><h3 class="inventory-thumbnail__title">{{:: SubscriptionThumbnailController.item.name}}</h3></div><div class="inventory-thumbnail__banner"><div class="inventory-thumbnail__price">{{:: SubscriptionThumbnailController.item.price}}<small class="subscription__price-unit" translate="SHOP_SUBSCRIPTION_PER_MONTH"></small></div></div></div></div>'),e.put("shop/transactions/transactions-history/transactions-history.html",'<table class="transactions-history"><thead><tr><th translate="TRANSACTIONS_TABLE_DATE"></th><th translate="TRANSACTIONS_TABLE_PURCHASE"></th><th translate="TRANSACTIONS_TABLE_VALUE"></th></tr></thead><tbody><tr ng-repeat="item in TransactionsHistoryController.transactions | orderBy: \'-creationTime\' | limitTo: TransactionsHistoryController.limitTo track by $index"><td data-th="{{\'TRANSACTIONS_TABLE_DATE\' | translate}}">{{:: item.creationTime | amDateFormat: \'D MMM YYYY\'}}</td><td data-th="{{\'TRANSACTIONS_TABLE_PURCHASE\' | translate}}"><span ng-if="item.product" class="product-name">{{:: item.product.name}}</span> <span ng-if="item.credits > 0" class="credits" translate="CREDITS_AMOUNT" translate-values="{ value: item.credits }"></span></td><td data-th="{{\'TRANSACTIONS_TABLE_VALUE\' | translate}}">{{:: item.price}}</td></tr></tbody></table>'),e.put("shop/voucher-redeem/voucher-icon/voucher-icon.html",'<span ng-if="VoucherIconController.product.icons[0]"> <img ng-src="{{:: VoucherIconController.product.icons[0]}}" class="voucher-icon__product"> {{:: VoucherIconController.product.name}} </span><span ng-if="VoucherIconController.credits"> <i class="voucher-icon__credits"></i> {{:: VoucherIconController.credits}} </span>'),e.put("common/form/password-new/password-strength/password-strength.html",'<div class="password-strength__label"><span>{{ \'PASSWORD_STRENGTH_LABEL\' | translate }}</span> <span>{{ PasswordStrengthController.score | strengthRating | ratingTranslation | translate }}</span></div><div class="password-strength__field"><div habbo-password-strength-indicator="PasswordStrengthController.score" ng-class="\'password-strength__indicator--\' + (PasswordStrengthController.score | strengthRating)" class="password-strength__indicator"></div></div><p ng-transclude class="password-strength__error"></p>'),e.put("common/header/hotel-button-native/download/native-hotel-download.html",'<a ng-href="{{$ctrl.url}}" class="native-hotel-download"><span class="native-hotel-download__icon"></span> <span class="native-hotel-download__text">{{ $ctrl.translationKey | translate }}</span> </a>'),e.put("common/header/hotel-button-native/hotel-beta-navigation/hotel-beta-navigation.html",'<div ng-if="HotelBetaNavigationController.visible" class="hotel-beta-navigation"><a href="/hotel" id="ga-linkid-hotel"><span translate="BETA_HOTEL_NAVIGATION"></span></a></div>'),e.put("common/header/hotel-button-native/launch/native-hotel-code.html",'<div class="native-hotel-launch__group"><p class="native-hotel-launch__group__desc" translate="NATIVE_HOTEL_LAUNCH_DESCRIPTION"></p><input type="password" class="native-hotel-launch__group__code" ng-model="$ctrl.code" disabled="disabled" habbo-password-toggle-mask autocomplete="off"> <button type="button" ng-disabled="$ctrl.disabled" class="native-hotel-launch__group__button" ng-click="$ctrl.copy()">{{ ($ctrl.copied ? \'NATIVE_HOTEL_LAUNCH_COPIED_CODE\' : \'NATIVE_HOTEL_LAUNCH_COPY_CODE\') | translate }}</button></div>'),e.put("common/header/hotel-button-native/launch/native-hotel-launch.html",'<a ng-href="{{$ctrl.url}}" class="native-hotel-launch__app" ng-click="$ctrl.clicked()"><span class="native-hotel-launch__app__icon"></span> <span class="native-hotel-launch__app__text" translate="NATIVE_HOTEL_LAUNCH_OPEN_APP"></span> </a>'),e.put("common/header/hotel-button-native/modal/native-hotel-modal.html",'<button ng-click="$dismiss()" class="modal__close"></button><h3 translate="NATIVE_MODAL_TITLE" class="modal__title"></h3><div class="modal__content"><div ng-if="$ctrl.loading"><inline-spinner></inline-spinner></div><div ng-if="!$ctrl.loading && $ctrl.error"><span class="hotel-button-native__error" translate="NATIVE_MODAL_OPEN_ERROR"></span></div><div ng-if="!$ctrl.loading && !$ctrl.error"><native-hotel-launch url="{{$ctrl.url}}"></native-hotel-launch><native-hotel-code code="{{$ctrl.ticket}}"></native-hotel-code><native-hotel-downloads></native-hotel-downloads><habbo-hotel-beta-navigation></habbo-hotel-beta-navigation><native-hotel-downloads-faq></native-hotel-downloads-faq></div></div>'),e.put("shop/payment-details/payment-steps/adyen/adyen.html",'<div ng-if="AdyenController.state === \'AWAITING_INPUT\'"><h3 translate="SHOP_PAYMENT_ADYEN_CARD_DETAILS" class="adyen__form-header"></h3><img ng-src="{{:: AdyenController.method.buttonLogoUrl}}" class="adyen__form-header-icon"><div class="adyen__form-wrapper"><habbo-credit-card-form class="adyen__form" card="AdyenController.card" on-submit="AdyenController.onSend(data)"></habbo-credit-card-form></div></div><habbo-message-container ng-if="AdyenController.state === \'SUCCESS\'" type="check" class="adyen__result-box"><h3 translate="SHOP_PAYMENT_COMPLETED" class="adyen__form-header"></h3><p translate="SHOP_PAYMENT_TRANSACTION_DETAILS" translate-values="{ transactionId: AdyenController.transactionId }"></p><button type="submit" translate="OK" class="payment-methods__button payment-button" ng-click="AdyenController.close()"></button></habbo-message-container><habbo-message-container ng-if="AdyenController.state === \'FAILURE\'" type="x" class="adyen__result-box"><h3 translate="SHOP_PAYMENT_FAILED" class="adyen__form-header"></h3><p ng-if="AdyenController.errorType === \'HTTP_ERROR\'">{{:: AdyenController.errorMsg}}</p><p ng-if="AdyenController.errorType === \'USER_DATA\'" translate="SHOP_PLEASE_CHECK_CREDIT_CARD"></p><p ng-if="AdyenController.errorType === \'LIMIT_EXCEEDED\'" translate="SHOP_LIMIT_EXCEEDED"></p><p ng-if="AdyenController.errorType === \'RISK_CHECK_FAILED\'" translate="SHOP_RISK_CHECK_FAILED"></p><button type="submit" translate="OK" class="payment-methods__button payment-button" ng-click="AdyenController.showInputForm()"></button></habbo-message-container>'),e.put("shop/payment-details/payment-steps/payment-button/payment-button.html",'<button ng-click="PaymentButtonController.purchase()" ng-disabled="PaymentButtonController.paymentInProgress" class="payment-button" translate="{{:: PaymentButtonController.translationKey}}"></button>'),e.put("shop/payment-details/payment-steps/payment-disclaimer/payment-disclaimer.html",'<h3 class="payment-steps__title payment-steps__title--single" translate="SHOP_SMALLPRINT_TITLE"></h3><small class="payment-steps__step payment-steps__legal" translate="{{:: PaymentDisclaimerController.methodSmallPrintKey}}"></small><ul class="payment-steps__step"><li class="payment-methods__method"><habbo-payment-button item="PaymentDisclaimerController.item" method="PaymentDisclaimerController.method" class="payment-methods__button"></habbo-payment-button></li></ul>'),e.put("shop/payment-details/payment-steps/payment-methods/payment-methods.html",'<ul><li ng-repeat="paymentMethod in PaymentMethodsController.item.paymentMethods | paymentCategory: PaymentMethodsController.selectedCategory" class="payment-methods__method"><img ng-if="paymentMethod.buttonLogoUrl" ng-src="{{:: paymentMethod.buttonLogoUrl}}" class="payment-methods__icon"> <span ng-if="!paymentMethod.buttonLogoUrl && (paymentMethod.category === \'online\' || paymentMethod.category === \'prepaid\')" class="payment-methods__label">{{:: paymentMethod.name}} </span><span ng-if="!paymentMethod.buttonLogoUrl && (paymentMethod.category === \'mobile\' || paymentMethod.category === \'landline\')" class="payment-methods__label" translate="{{:: PaymentMethodsController.PaymentStepsController.getMethodTitleKey(paymentMethod)}}"></span><habbo-payment-button ng-if="!paymentMethod.disclaimerRequired && !paymentMethod.premiumSms && paymentMethod.requestPath !== \'direct\'" item="PaymentMethodsController.item" method="paymentMethod" class="payment-methods__button"></habbo-payment-button><button ng-if="paymentMethod.disclaimerRequired && !paymentMethod.premiumSms && paymentMethod.requestPath !== \'direct\'" ng-click="PaymentMethodsController.PaymentStepsController.setDisclaimer(paymentMethod)" class="payment-methods__button payment-button" translate="SHOP_CONTINUE_BUTTON"></button> <button ng-if="paymentMethod.premiumSms" ng-click="PaymentMethodsController.PaymentStepsController.setPremiumSms(paymentMethod)" class="payment-methods__button payment-button" translate="SHOP_CONTINUE_BUTTON"></button> <button ng-if="paymentMethod.requestPath === \'direct\'" ng-click="PaymentMethodsController.PaymentStepsController.setAdyen(paymentMethod)" class="payment-methods__button payment-button" translate="SHOP_CONTINUE_BUTTON"></button></li></ul>'),e.put("shop/payment-details/payment-steps/premium-sms/premium-sms.html",'<h3 translate="SHOP_PAYMENT_PSMS_INSTRUCTIONS"></h3><p translate="{{:: PremiumSmsController.methodInstructionKey}}"></p><div class="premium-sms__voucher-redeem__wrapper"><habbo-voucher-redeem class="premium-sms__voucher-redeem"></habbo-voucher-redeem></div><p translate="SHOP_PAYMENT_PSMS_HELP"></p><h3 translate="SHOP_SMALLPRINT_TITLE"></h3><small class="premium-sms__legal" translate="{{:: PremiumSmsController.methodSmallPrintKey}}"></small>'),e.put("shop/payment-details/product-payment-details/sub-product-icons/sub-product-icons.html",'<p class="sub-product-icons__description" translate="SHOP_PRODUCT_SUBPRODUCTS_DESCRIPTION"></p><ul><li ng-repeat="subProduct in SubProductIconsController.subProducts" class="sub-product-icons__icon" data-count="{{:: subProduct.count }}"><img ng-src="{{:: subProduct.imgUrl}}"></li></ul>'),e.put("shop/store/inventory/bundles/bundles.html",'<section><h3 class="inventory__section__title" translate="SHOP_OFFERINGS_BUNDLE_TITLE"></h3><habbo-accordion-grid class="inventory__grid"><habbo-accordion-item ng-repeat="item in BundlesController.items track by item.id"><habbo-accordion-item-preview><habbo-product-thumbnail item="item"></habbo-product-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-product-payment-details item="item" selected-category="{{BundlesController.selectedCategory}}"></habbo-product-payment-details></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid></section>'),e.put("shop/store/inventory/daily-deal/daily-deal.html",'<section><h3 class="inventory__section__title" translate="SHOP_DAILY_DEAL_TITLE"></h3><habbo-accordion-grid class="inventory__grid"><habbo-accordion-item ng-repeat="item in DailyDealController.dealOfDay track by item.id"><habbo-accordion-item-preview><habbo-credit-thumbnail ng-if="DailyDealController.isCredit(item)" purchased-offers="{{DailyDealController.countPurchasedOffers}}" total-offers="{{DailyDealController.totalOffers}}" item="item"></habbo-credit-thumbnail><habbo-product-thumbnail ng-if="!DailyDealController.isCredit(item)" item="item" purchased-offers="{{DailyDealController.countPurchasedOffers}}" total-offers="{{DailyDealController.totalOffers}}"></habbo-product-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-product-payment-details ng-if="!DailyDealController.isCredit(item)" item="item" selected-category="{{DailyDealController.selectedCategory}}"></habbo-product-payment-details><habbo-credit-payment-details ng-if="DailyDealController.isCredit(item)" item="item" selected-category="{{CreditsController.selectedCategory}}"></habbo-credit-payment-details><habbo-daily-deal-chain ng-if="item.isChainOffer && DailyDealController.offerLeftToBuy.length > 0" items="DailyDealController.offerLeftToBuy" show-offers="DailyDealController.allOffers"></habbo-daily-deal-chain><button type="button" ng-if="item.isChainOffer && DailyDealController.offerLeftToBuy.length > 2" class="daily-chain-offers__button" ng-click="DailyDealController.toggleAllOffers()" translate="{{DailyDealController.buttonText}}"></button></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid></section>'), e.put("shop/store/inventory/memberships/memberships.html",'<section><h3 class="inventory__section__title" translate="SHOP_OFFERINGS_MEMBERSHIP_TITLE"></h3><section ng-if="MembershipsController.combo.length > 0"><h5 class="inventory__section__title inventory__section__title__sub" translate="SHOP_OFFERINGS_COMBO_TITLE"></h5><habbo-accordion-grid class="inventory__grid"><habbo-accordion-item ng-repeat="item in MembershipsController.combo track by item.id"><habbo-accordion-item-preview><habbo-product-thumbnail item="item"></habbo-product-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-product-payment-details item="item" selected-category="{{MembershipsController.selectedCategory}}"></habbo-product-payment-details></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid></section><section ng-if="MembershipsController.habboClub.length > 0"><h5 class="inventory__section__title inventory__section__title__sub" translate="SHOP_OFFERINGS_HABBO_CLUB_TITLE"></h5><habbo-accordion-grid class="inventory__grid"><habbo-accordion-item ng-repeat="item in MembershipsController.habboClub track by item.id"><habbo-accordion-item-preview><habbo-product-thumbnail item="item"></habbo-product-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-product-payment-details item="item" selected-category="{{MembershipsController.selectedCategory}}"></habbo-product-payment-details></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid></section><section ng-if="MembershipsController.buildersClub.length > 0"><h5 class="inventory__section__title inventory__section__title__sub" translate="SHOP_OFFERINGS_BUILDERS_CLUB_TITLE"></h5><habbo-accordion-grid class="inventory__grid"><habbo-accordion-item ng-repeat="item in MembershipsController.buildersClub track by item.id"><habbo-accordion-item-preview><habbo-product-thumbnail item="item"></habbo-product-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-product-payment-details item="item" selected-category="{{MembershipsController.selectedCategory}}"></habbo-product-payment-details></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid></section></section>'),e.put("shop/store/inventory/weekly-deal/weekly-deal.html",'<section><h3 class="inventory__section__title" translate="SHOP_WEEKLY_DEAL_TITLE"></h3><habbo-accordion-grid class="inventory__grid"><habbo-accordion-item ng-repeat="item in WeeklyDealController.items track by item.id"><habbo-accordion-item-preview><habbo-product-thumbnail ng-if="!WeeklyDealController.isCredit" item="item"></habbo-product-thumbnail><habbo-credit-thumbnail ng-if="WeeklyDealController.isCredit" item="item"></habbo-credit-thumbnail></habbo-accordion-item-preview><habbo-accordion-item-content><habbo-product-payment-details ng-if="!WeeklyDealController.isCredit" item="item" selected-category="{{WeeklyDealController.selectedCategory}}"></habbo-product-payment-details><habbo-credit-payment-details ng-if="WeeklyDealController.isCredit" item="item" selected-category="{{CreditsController.selectedCategory}}"></habbo-credit-payment-details></habbo-accordion-item-content></habbo-accordion-item></habbo-accordion-grid></section>'),e.put("shop/store/inventory/daily-deal/daily-deal-chain/daily-deal-chain.html",'<section class="daily-chain-offers"><h2 class="daily-chain-offers__title" translate="SHOP_DAILY_DEAL_CHAIN_TITLE"></h2><div class="daily-chain-offers__wrapper" ng-repeat="item in DailyDealChainController.items track by item.id"><div ng-hide="$index > 2 && !DailyDealChainController.showOffers"><div class="daily-chain-offers__details"><header class="daily-chain-offers__header"><h3 ng-if="item.creditAmount === 0" class="daily-chain-offers__name">{{::item.name}}</h3><h3 ng-if="item.creditAmount > 0 && item.doubleCredits" translate="DOUBLE_CREDITS_PREFIX" translate-values="{ value: item.creditAmount }" class="daily-chain-offers__name"></h3><h3 ng-if="item.creditAmount > 0 && !item.doubleCredits" translate="CREDITS_AMOUNT" translate-values="{ value: item.creditAmount }" class="daily-chain-offers__name"></h3></header><p ng-if="item.creditAmount === 0">{{::item.description}}</p><p ng-if="item.creditAmount > 0 && item.doubleCredits" translate="SHOP_DOUBLE_CREDITS_DESCRIPTION" translate-values="{ value: item.creditAmount }"></p><p ng-if="item.creditAmount > 0 && !item.doubleCredits" translate="SHOP_CREDITS_DESCRIPTION" translate-values="{ value: item.creditAmount }"></p></div><habbo-product-icon image-name="{{::item.imageName}}" class="daily-chain-offers__icon" item-price="{{::item.price}}" is-daily="true"></habbo-product-icon></div><div class="daily-chain-offers__divider-wrapper" ng-hide="$index > 1 && !DailyDealChainController.showOffers"><div class="daily-chain-offers__divider"></div><img src="https://images.habbo.com/habbo-web/america/fi/assets/images/shop/divider.83d7a099.png"><div class="daily-chain-offers__divider"></div></div></div></section>')}]),angular.module("events",[]).constant("EVENTS",{accordionOpen:"accordion-item-open",accordionClose:"accordion-item-close",accordionResize:"accordion-item-resize",accordionUpdate:"accordion-item-update",clientOpen:"client-open",clientClose:"client-close",clientNativeOpen:"client-native-open",clientNativeClose:"client-native-close",securityLogin:"security-login",shopPaymentClose:"payment-close",gdprNotification:"gdpr-notification",ethereumInitialized:"ethereum-initialized"}),angular.module("app",["ngAnimate","activate","community","console.warning","creation","email.optout","email.optout.success","email.report.unauthorized","footer","habbo.nft","help.login","home","hotel","hotel.button.native","logout","not.found","password.reset","playing.habbo","profile","registration","room","security","settings","shop"]).config(["$provide",function(e){e.decorator("$exceptionHandler",["$delegate",function(e){return function(t,r){e(t,r)}}])}]).run(["spinner",function(e){e.init()}]).config(["$compileProvider",function(e){e.aHrefSanitizationWhitelist(/^(http|https|mailto|habbo):/)}]),function(){var e=!0;angular.module("app").config(["$sceDelegateProvider",function(e){var t=e.resourceUrlWhitelist(),r="https://*.habbo.com/**,https://*.habbo.fi/**,https://habboo-a.akamaihd.net/**,https://images.habbo.com/**,https://www.offertoro.com/**".split(",");t=t.concat(r),e.resourceUrlWhitelist(t)}]).config(["$compileProvider",function(t){t.debugInfoEnabled(!e)}]),angular.module("config",[]).constant("CONFIG",{apiUrl:"/api",extraDataUrl:"/extradata",shopUrl:"/shopapi",appStoreUrl:"https://itunes.apple.com/app/id1638285230",badgeUrl:"https://images.habbo.com/c_images/album1584",googlePlayUrl:"https://play.google.com/store/apps/details?id=com.sulake.habbo",habboWebAdsUrl:"https://images.habbo.com/habbo-web-ads/",habboWebLeaderboardsUrl:"https://images.habbo.com/habbo-web-leaderboards/",habboWebNewsUrl:"https://images.habbo.com/habbo-web-news/fi/production/",habboWebPagesUrl:"https://images.habbo.com/habbo-web-pages/production/",imagingUrl:"/habbo-imaging",lang:"fi",hotel:"hhfi",localizationSite:"fi",minAge:parseInt("13",10),rpxLocale:"fi",rpxTokenUrl:"https://www.habbo.fi/api/public/authentication/rpx",offerToroEnabled:"true",twitterAccount:"@HabboFi",adyenPublicKey:"10001|DB119F7832E23CBEDA2A330D3C13310D78ABA07136CDFFFA3D798BDFE4A903D5A079EE09710BBEC72573F0CA80D48DD0380D8AC1B0FDBCB978E69E9BE92ABDC27020858A52DC8D7A9C2D77B071FE1E6A3177E4E73E8E7CFC4A13C881BBBEF3C2EFBB24475818AB9E56BC597BABFD306593C3DF2B16F49D38F560212C183492EE7D0750CE84AB3509563CB3C99EC0B815CF5211E793500110B2A53DCAD793E267677BBE89035E5E9662FD2DB94A5EECBD6FB81F5DAF7205F9EBF15963639FC72DF0875CC2249FB31B300CC8183B2C948B3B3843C414677C9EC82C6A2D4CBF937B57FD03A53B0A8A56369AD490CEAB9EED18FE77E7B9032445A57A06CE23DE6115",habboHelp:"https://help.habbo.fi/",ethereumNetwork:parseInt("1",10),appleLocale:"fi_FI",appleRedirectURI:"https://www.habbo.fi",collectiblesUrl:"https://collectibles.habbo.com/",originsUrl:"https://origins.habbo.fi/",showLandingMenu:!1,shopImagesUrl:"https://images.habbo.com/c_images/shop/"}),angular.module("locale",["angularMoment","pascalprecht.translate"]),angular.module("angularMoment").run(["amMoment",function(e){e.changeLocale("fi")}]),angular.module("ezfb").config(["ezfbProvider",function(e){e.setInitParams({appId:"1417574575138432"}),e.setLocale("fi_FI")}]),angular.module("noCAPTCHA").config(["noCAPTCHAProvider",function(e){e.setLanguage("fi")}]),angular.module("pascalprecht.translate").config(["$translateProvider",function(e){e.preferredLanguage("fi"),e.useStaticFilesLoader({prefix:"https://images.habbo.com/habbo-web-l10n/",suffix:".json"}),e.useSanitizeValueStrategy("escapeParameters")}])}();